lib/gon/helpers.rb in gon-3.0.2 vs lib/gon/helpers.rb in gon-3.0.3

- old
+ new

@@ -11,9 +11,12 @@ if variables_for_request_present? Gon::Base.render_data(options) elsif Gon.global.all_variables.present? Gon.clear Gon::Base.render_data(options) + elsif options[:init].present? + Gon.clear if Gon.all_variables.present? + Gon::Base.render_data(options) else "" end end