提交 24c7f41b 编写于 作者: J Jeremy Kemper

Freeze ModelName cache_key also

上级 c3972605
...@@ -6,7 +6,7 @@ def initialize(name) ...@@ -6,7 +6,7 @@ def initialize(name)
super super
@singular = underscore.tr('/', '_').freeze @singular = underscore.tr('/', '_').freeze
@plural = @singular.pluralize.freeze @plural = @singular.pluralize.freeze
@cache_key = tableize @cache_key = tableize.freeze
@partial_path = "#{@cache_key}/#{demodulize.underscore}".freeze @partial_path = "#{@cache_key}/#{demodulize.underscore}".freeze
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册