Skip to content

Commit

Permalink
Freeze ModelName cache_key also
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jun 26, 2008
1 parent c397260 commit 24c7f41
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -6,7 +6,7 @@ def initialize(name)
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
Expand Down

0 comments on commit 24c7f41

Please sign in to comment.