diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index 9965db98de..8f5118c3b0 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -28,7 +28,10 @@ module Rails protected attr_reader :file_name - alias :singular_name :file_name + + def singular_name + file_name + end # Wrap block with namespace of current application # if namespace exists and is not skipped |