mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fine, Rubocop, don't shadow outer variable
This commit is contained in:
parent
49ac55345d
commit
94d2b29e86
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def render(context)
|
||||
erb = ERB.new(@content).tap { |erb| erb.filename = @content_path }
|
||||
erb = ERB.new(@content).tap { |e| e.filename = @content_path }
|
||||
context ? erb.result(context) : erb.result
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue