Module: InertiaRails::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/inertia_rails/controller.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #default_render ⇒ Object
- #inertia_meta ⇒ Object
- #redirect_to(options = {}, response_options = {}) ⇒ Object
Instance Method Details
#default_render ⇒ Object
123 124 125 126 127 128 129 |
# File 'lib/inertia_rails/controller.rb', line 123 def default_render if inertia_configuration.default_render render(inertia: true) else super end end |
#inertia_meta ⇒ Object
136 137 138 |
# File 'lib/inertia_rails/controller.rb', line 136 def @inertia_meta ||= InertiaRails::MetaTagBuilder.new(self) end |
#redirect_to(options = {}, response_options = {}) ⇒ Object
131 132 133 134 |
# File 'lib/inertia_rails/controller.rb', line 131 def redirect_to( = {}, = {}) () super end |