Class: Polivalente::CustomDeviseController::CustomResponder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
app/controllers/polivalente/custom_devise_controller.rb

Instance Method Summary collapse

Instance Method Details

#to_turbo_streamObject



7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/polivalente/custom_devise_controller.rb', line 7

def to_turbo_stream
  controller.render(options.merge(formats: :html))
  
rescue ActionView::MissingTemplate => error
  if get?
  elsif has_errors? && default_action
    render rendering_options.merge(formats: :html, status: :unprocessable_entity)
  else
    redirect_to navigation_location
  end
end