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, ={}) super @gon = .delete(:gon) end |
#to_html ⇒ Object
10 11 12 13 |
# File 'lib/gon_responder.rb', line 10 def to_html set_gon! if @gon super end |