aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-25 15:11:41 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-25 18:55:55 -0700
commit24c7f41b4fdc411e35131f9065852a685032211f (patch)
treedf4c9e2ef626150383e5a4cfafb43923f13bbdc4 /activesupport
parentc39726057714970f8e39d27bd0cb49fa4d6bc383 (diff)
downloadrails-24c7f41b4fdc411e35131f9065852a685032211f.tar.gz
rails-24c7f41b4fdc411e35131f9065852a685032211f.tar.bz2
rails-24c7f41b4fdc411e35131f9065852a685032211f.zip
Freeze ModelName cache_key also
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/module/model_naming.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/model_naming.rb b/activesupport/lib/active_support/core_ext/module/model_naming.rb
index abb02f1f70..5518f5417b 100644
--- a/activesupport/lib/active_support/core_ext/module/model_naming.rb
+++ b/activesupport/lib/active_support/core_ext/module/model_naming.rb
@@ -6,7 +6,7 @@ module ActiveSupport
super
@singular = underscore.tr('/', '_').freeze
@plural = @singular.pluralize.freeze
- @cache_key = tableize
+ @cache_key = tableize.freeze
@partial_path = "#{@cache_key}/#{demodulize.underscore}".freeze
end
end