Module: Gon::Helpers::InstanceMethods
- Defined in:
- lib/gon/helpers.rb
Instance Method Summary collapse
Instance Method Details
#include_gon(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gon/helpers.rb', line 10 def include_gon( = {}) if variables_for_request_present? Gon::Base.render_data() elsif Gon.global.all_variables.present? Gon.clear Gon::Base.render_data() elsif [:init].present? Gon.clear if Gon.all_variables.present? Gon::Base.render_data() else "" end end |