aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generator
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-19 16:08:03 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-19 16:11:55 +0200
commit5b8fe9c4c72e8e33d7b595b94b127b96c7240247 (patch)
tree71a722559af8e01a1bc664bd0bb0cf835cc6861c /railties/lib/generator
parent9dd1e2f2b08ddf591b5fcc5848d404b0c14c4949 (diff)
downloadrails-5b8fe9c4c72e8e33d7b595b94b127b96c7240247.tar.gz
rails-5b8fe9c4c72e8e33d7b595b94b127b96c7240247.tar.bz2
rails-5b8fe9c4c72e8e33d7b595b94b127b96c7240247.zip
Moving tests to new generators schema.
Diffstat (limited to 'railties/lib/generator')
-rw-r--r--railties/lib/generator/actions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generator/actions.rb b/railties/lib/generator/actions.rb
index 252b1fc4b1..c905f17f61 100644
--- a/railties/lib/generator/actions.rb
+++ b/railties/lib/generator/actions.rb
@@ -264,8 +264,8 @@ module Rails
# Define file as an alias to create_file for backwards compatibility.
#
- def file(*args)
- create_file(*args)
+ def file(*args, &block)
+ create_file(*args, &block)
end
# Define log for backwards compatibility. If just one argument is sent,