aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-04-04 10:43:24 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-04-04 10:43:24 -0700
commita9398a7da4fa845a0182bd53273c607dae55b1ee (patch)
treed3b3f2f95a45ce19f10b774d6d07b41b318afa99 /railties/lib/rails/generators
parentc6bd8a9d3ac2ebd5d0af4573d6d799085ac2219b (diff)
parent2d8396fc9fbea9189e9e945e41e643925da5b2cb (diff)
downloadrails-a9398a7da4fa845a0182bd53273c607dae55b1ee.tar.gz
rails-a9398a7da4fa845a0182bd53273c607dae55b1ee.tar.bz2
rails-a9398a7da4fa845a0182bd53273c607dae55b1ee.zip
Merge pull request #5716 from jurriaan/tr-gsub-cleanup
Updated/changed unneeded tr/gsubs
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/named_base.rb2
-rw-r--r--railties/lib/rails/generators/resource_helpers.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb
index 862fd9e88d..c457b5fbbc 100644
--- a/railties/lib/rails/generators/named_base.rb
+++ b/railties/lib/rails/generators/named_base.rb
@@ -99,7 +99,7 @@ module Rails
end
def i18n_scope
- @i18n_scope ||= file_path.gsub('/', '.')
+ @i18n_scope ||= file_path.tr('/', '.')
end
def table_name
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