aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-04-04 14:11:38 -0700
committerJohn Hawthorn <john@hawthorn.email>2019-04-04 14:28:10 -0700
commitb8e6594181996807ea18d1209f8ee3dbd581554b (patch)
tree29176c14b95c9ffd1b48a6841b118bd14b844ff8 /actionview
parentb8c90c36444b9c239935b470cb04adddf09e2c60 (diff)
downloadrails-b8e6594181996807ea18d1209f8ee3dbd581554b.tar.gz
rails-b8e6594181996807ea18d1209f8ee3dbd581554b.tar.bz2
rails-b8e6594181996807ea18d1209f8ee3dbd581554b.zip
Don't call Template#refresh
Now that Template#source will always return a source, this is unnecessary.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/template.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb
index 1694e408c7..ae067cb73d 100644
--- a/actionview/lib/action_view/template.rb
+++ b/actionview/lib/action_view/template.rb
@@ -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