We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f99854 commit fc2aa53Copy full SHA for fc2aa53
actionview/lib/action_view/template.rb
@@ -278,7 +278,6 @@ def compile!(view)
278
# regardless of the original source encoding.
279
def compile(mod)
280
encode!
281
- method_name = self.method_name
282
code = @handler.call(self)
283
284
# Make sure that the resulting String to be eval'd is in the
@@ -333,7 +332,7 @@ def locals_code
333
332
locals.each_with_object("") { |key, code| code << "#{key} = #{key} = local_assigns[:#{key}];" }
334
end
335
336
- protected def method_name #:nodoc:
+ def method_name
337
@method_name ||= begin
338
m = "_#{identifier_method_name}__#{@identifier.hash}_#{__id__}"
339
m.tr!("-".freeze, "_".freeze)
0 commit comments