Gon::ViewHelpers

Public Instance Methods

include_gon(options = {}) click to toggle source
# File lib/gon/helpers.rb, line 3
def include_gon(options = {})
  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
    Gon::Base.render_data(options)
  else
    ''
  end
end
include_gon_amd(options={}) click to toggle source
# File lib/gon/helpers.rb, line 17
def include_gon_amd(options={})
  Gon::Base.render_data_amd(options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.