diff options
author | utilum <oz@utilum.com> | 2019-04-12 15:25:30 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2019-04-12 15:25:30 +0200 |
commit | f999210c98d216c8c7aef3da60820a041c4e96f1 (patch) | |
tree | d876b444892d2e3136197c67e04b63d4ad64ee95 /actionview/lib | |
parent | 3bd534287139549cee10e10364344d66139d9237 (diff) | |
download | rails-f999210c98d216c8c7aef3da60820a041c4e96f1.tar.gz rails-f999210c98d216c8c7aef3da60820a041c4e96f1.tar.bz2 rails-f999210c98d216c8c7aef3da60820a041c4e96f1.zip |
Squash `warning: instance variable @filename not initialized`
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/template/handlers/erb/erubi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/template/handlers/erb/erubi.rb b/actionview/lib/action_view/template/handlers/erb/erubi.rb index 307b852440..e602aa117a 100644 --- a/actionview/lib/action_view/template/handlers/erb/erubi.rb +++ b/actionview/lib/action_view/template/handlers/erb/erubi.rb @@ -25,7 +25,7 @@ module ActionView src = @src view = Class.new(ActionView::Base) { include action_view_erb_handler_context._routes.url_helpers - class_eval("define_method(:_template) { |local_assigns, output_buffer| #{src} }", @filename || "(erubi)", 0) + class_eval("define_method(:_template) { |local_assigns, output_buffer| #{src} }", defined?(@filename) ? @filename : "(erubi)", 0) }.empty view._run(:_template, nil, {}, ActionView::OutputBuffer.new) end |