diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-25 15:11:41 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-25 18:55:55 -0700 |
commit | 24c7f41b4fdc411e35131f9065852a685032211f (patch) | |
tree | df4c9e2ef626150383e5a4cfafb43923f13bbdc4 | |
parent | c39726057714970f8e39d27bd0cb49fa4d6bc383 (diff) | |
download | rails-24c7f41b4fdc411e35131f9065852a685032211f.tar.gz rails-24c7f41b4fdc411e35131f9065852a685032211f.tar.bz2 rails-24c7f41b4fdc411e35131f9065852a685032211f.zip |
Freeze ModelName cache_key also
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/model_naming.rb | 2 |
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 |