aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/resource_helpers.rb
diff options
context:
space:
mode:
authorJurriaan Pruis <email@jurriaanpruis.nl>2012-04-03 15:16:09 +0200
committerJurriaan Pruis <email@jurriaanpruis.nl>2012-04-03 15:16:09 +0200
commit2d8396fc9fbea9189e9e945e41e643925da5b2cb (patch)
tree9185737cf020abf95ab2bad80c1bdc281c441808 /railties/lib/rails/generators/resource_helpers.rb
parent0cc6c5fec235cca6d7eb85d4f849536db8566e93 (diff)
downloadrails-2d8396fc9fbea9189e9e945e41e643925da5b2cb.tar.gz
rails-2d8396fc9fbea9189e9e945e41e643925da5b2cb.tar.bz2
rails-2d8396fc9fbea9189e9e945e41e643925da5b2cb.zip
Updated/changed useless tr/gsubs
Diffstat (limited to 'railties/lib/rails/generators/resource_helpers.rb')
-rw-r--r--railties/lib/rails/generators/resource_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/resource_helpers.rb b/railties/lib/rails/generators/resource_helpers.rb
index 3c5b39fa16..48833869e5 100644
--- a/railties/lib/rails/generators/resource_helpers.rb
+++ b/railties/lib/rails/generators/resource_helpers.rb
@@ -50,7 +50,7 @@ module Rails
end
def controller_i18n_scope
- @controller_i18n_scope ||= controller_file_path.gsub('/', '.')
+ @controller_i18n_scope ||= controller_file_path.tr('/', '.')
end
# Loads the ORM::Generators::ActiveModel class. This class is responsible