mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Squash warning: instance variable @filename not initialized
This commit is contained in:
parent
3bd5342871
commit
f999210c98
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue