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:
parent
b8c90c3644
commit
b8e6594181
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue