lib/jelly/jelly_controller.rb in honkster-jelly-0.8.14 vs lib/jelly/jelly_controller.rb in honkster-jelly-0.9.0
- old
+ new
@@ -34,8 +34,8 @@
jelly_callback_erb_template
end
end
def jelly_callback_erb_template
- "<%= instance_eval(&@jelly_block).to_json %>"
+ %Q{<%= instance_eval(&controller.instance_variable_get(:@jelly_block)).to_json.html_safe %>}
end
end