1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Freeze ModelName cache_key also

This commit is contained in:
Jeremy Kemper 2008-06-25 15:11:41 -07:00
parent c397260577
commit 24c7f41b4f

View file

@ -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