self. is not needed when calling its own instance method
This commit is contained in:
parent
7f998540af
commit
fc2aa53f87
@ -278,7 +278,6 @@ def compile!(view)
|
||||
# regardless of the original source encoding.
|
||||
def compile(mod)
|
||||
encode!
|
||||
method_name = self.method_name
|
||||
code = @handler.call(self)
|
||||
|
||||
# Make sure that the resulting String to be eval'd is in the
|
||||
@ -333,7 +332,7 @@ def locals_code
|
||||
locals.each_with_object("") { |key, code| code << "#{key} = #{key} = local_assigns[:#{key}];" }
|
||||
end
|
||||
|
||||
protected def method_name #:nodoc:
|
||||
def method_name
|
||||
@method_name ||= begin
|
||||
m = "_#{identifier_method_name}__#{@identifier.hash}_#{__id__}"
|
||||
m.tr!("-".freeze, "_".freeze)
|
||||
|
Loading…
Reference in New Issue
Block a user