lib/phlex/rails/buffered.rb in phlex-rails-0.8.0 vs lib/phlex/rails/buffered.rb in phlex-rails-0.8.1
- old
+ new
@@ -27,11 +27,11 @@
@object.#{method_name}(*args, **kwargs)
end
case output
when ::ActiveSupport::SafeBuffer
- @view.instance_variable_get(:@_target) << output
+ @view.instance_variable_get(:@_context).target << output
end
nil
end
RUBY
@@ -54,10 +54,10 @@
@object.public_send(*args, **kwargs)
end
case output
when ::ActiveSupport::SafeBuffer
- @view.instance_variable_get(:@_target) << output
+ @view.instance_variable_get(:@_context).target << output
end
nil
end
end