Module: InertiaRails::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/inertia_rails/controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#default_renderObject



117
118
119
120
121
122
123
# File 'lib/inertia_rails/controller.rb', line 117

def default_render
  if inertia_configuration.default_render
    render(inertia: true)
  else
    super
  end
end

#redirect_to(options = {}, response_options = {}) ⇒ Object



125
126
127
128
# File 'lib/inertia_rails/controller.rb', line 125

def redirect_to(options = {}, response_options = {})
  capture_inertia_errors(response_options)
  super
end