1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't call Template#refresh

Now that Template#source will always return a source, this is
unnecessary.
This commit is contained in:
John Hawthorn 2019-04-04 14:11:38 -07:00
parent b8c90c3644
commit b8e6594181

View file

@ -365,12 +365,7 @@ module ActionView
e.sub_template_of(self)
raise e
else
template = self
unless template.source
template = refresh(view)
template.encode!
end
raise Template::Error.new(template)
raise Template::Error.new(self)
end
end