aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/named_base.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-08-09 12:01:40 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-08-09 15:57:59 +0100
commit1ea7a00bc4c2d28abb21a36ee09f44f5210b06f6 (patch)
tree334b7c9ad1c56978a6682477749f7b347b98dcd4 /railties/lib/generators/named_base.rb
parent3545d6b0b227cc9ee4a645097bdbd43b33b42a87 (diff)
downloadrails-1ea7a00bc4c2d28abb21a36ee09f44f5210b06f6.tar.gz
rails-1ea7a00bc4c2d28abb21a36ee09f44f5210b06f6.tar.bz2
rails-1ea7a00bc4c2d28abb21a36ee09f44f5210b06f6.zip
Refactored create_migration on model generator.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties/lib/generators/named_base.rb')
-rw-r--r--railties/lib/generators/named_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/named_base.rb b/railties/lib/generators/named_base.rb
index c2b958e311..cd7aa61b50 100644
--- a/railties/lib/generators/named_base.rb
+++ b/railties/lib/generators/named_base.rb
@@ -36,7 +36,7 @@ module Rails
@class_name = "#{class_nesting}::#{class_name_without_nesting}"
end
- @table_name.gsub! '/', '_'
+ @table_name.gsub!('/', '_')
end
# Convert attributes hash into an array with GeneratedAttribute objects.