remove useless freeze

Ruby already does this freeze for us.
上级 07da5aeb
......@@ -343,7 +343,7 @@ def identifier_method_name #:nodoc:
def instrument(action, &block)
payload = { virtual_path: @virtual_path, identifier: @identifier }
case action
when "!render_template".freeze
when "!render_template"
ActiveSupport::Notifications.instrument("!render_template.action_view".freeze, payload, &block)
else
ActiveSupport::Notifications.instrument("#{action}.action_view".freeze, payload, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册