Skip to content

Commit

Permalink
Fine, Rubocop, don't shadow outer variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Feb 10, 2020
1 parent 49ac553 commit 94d2b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/configuration_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def read(content_path)
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
Expand Down

0 comments on commit 94d2b29

Please sign in to comment.