diff options
Diffstat (limited to 'railties/lib/generator/actions.rb')
-rw-r--r-- | railties/lib/generator/actions.rb | 4 |
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, |