Class: Admin::TurboDeviseController::Responder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- Admin::TurboDeviseController::Responder
- Defined in:
- lib/generators/infold/templates/install/app/controllers/admin/turbo_devise_controller.rb
Instance Method Summary collapse
Instance Method Details
#to_turbo_stream ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/infold/templates/install/app/controllers/admin/turbo_devise_controller.rb', line 5 def to_turbo_stream controller.render(.merge(formats: :html)) rescue ActionView::MissingTemplate => error if get? raise error elsif has_errors? && default_action render .merge(formats: :html, status: :unprocessable_entity) else redirect_to end end |