lib/action_view/component/base.rb in actionview-component-1.12.0 vs lib/action_view/component/base.rb in actionview-component-1.13.0
- old
+ new
@@ -173,10 +173,10 @@
raise ActionView::Component::TemplateError.new(template_errors) if validate
return false
end
templates.each do |template|
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ class_eval <<-RUBY, template[:path], -1
def #{call_method_name(template[:variant])}
@output_buffer = ActionView::OutputBuffer.new
#{compiled_template(template[:path])}
end
RUBY