diff options
author | John Hawthorn <john@hawthorn.email> | 2019-04-04 14:11:38 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-04-04 14:28:10 -0700 |
commit | b8e6594181996807ea18d1209f8ee3dbd581554b (patch) | |
tree | 29176c14b95c9ffd1b48a6841b118bd14b844ff8 /actionview/lib/action_view | |
parent | b8c90c36444b9c239935b470cb04adddf09e2c60 (diff) | |
download | rails-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/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/template.rb | 7 |
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 |