Module: Responders::GonResponder

Defined in:
lib/gon_responder.rb

Instance Method Summary collapse

Instance Method Details

#initialize(controller, resources, options = {}) ⇒ Object



5
6
7
8
# File 'lib/gon_responder.rb', line 5

def initialize(controller, resources, options={})
  super
  @gon = options.delete(:gon)
end

#to_htmlObject



10
11
12
13
# File 'lib/gon_responder.rb', line 10

def to_html
  set_gon! if @gon
  super
end