Class: CafeCar::ApplicationResponder

Inherits:
ActionController::Responder
  • Object
show all
Includes:
Responders::FlashResponder, Responders::HttpCacheResponder
Defined in:
lib/cafe_car/application_responder.rb

Instance Method Summary collapse

Instance Method Details

#to_turbo_streamObject



11
12
13
14
15
# File 'lib/cafe_car/application_responder.rb', line 11

def to_turbo_stream
  # Put :html back in the accepted format list. respond_with removes it
  controller.lookup_context.formats << :html
  to_html
end