1
0
Fork 0
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:
Kasper Timm Hansen 2020-02-10 23:14:48 +01:00
parent 49ac55345d
commit 94d2b29e86
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -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