lib/gon/helpers.rb in gon-5.0.1 vs lib/gon/helpers.rb in gon-5.0.2
- old
+ new
@@ -12,10 +12,10 @@
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.clear
Gon::Base.render_data(options)
else
''
end
end