Module: InertiaRails
- Defined in:
- lib/patches/better_errors.rb,
lib/inertia_rails.rb,
lib/patches/mapper.rb,
lib/patches/request.rb,
lib/inertia_rails/rspec.rb,
lib/inertia_rails/engine.rb,
lib/inertia_rails/version.rb,
lib/inertia_rails/renderer.rb,
lib/inertia_rails/base_prop.rb,
lib/inertia_rails/lazy_prop.rb,
lib/inertia_rails/controller.rb,
lib/inertia_rails/middleware.rb,
lib/inertia_rails/always_prop.rb,
lib/inertia_rails/action_filter.rb,
lib/inertia_rails/configuration.rb,
lib/inertia_rails/inertia_rails.rb,
lib/inertia_rails/generators/helper.rb,
lib/patches/debug_exceptions/patch-5-0.rb,
lib/patches/debug_exceptions/patch-5-1.rb,
app/controllers/inertia_rails/static_controller.rb,
lib/inertia_rails/generators/scaffold_template_base.rb,
lib/inertia_rails/generators/controller_template_base.rb
Overview
Patch ActionDispatch::DebugExceptions to render HTML for Inertia requests
Original source (unchanged since Rails 5.1): github.com/rails/rails/blob/5-1-stable/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb github.com/rails/rails/blob/5-2-stable/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb github.com/rails/rails/blob/6-0-stable/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
Defined Under Namespace
Modules: Controller, Generators, Helper, InertiaBetterErrors, InertiaDebugExceptions, InertiaMapper, InertiaRequest, RSpec Classes: ActionFilter, AlwaysProp, BaseProp, Configuration, Engine, Error, LazyProp, Middleware, Renderer, StaticController
Constant Summary collapse
- VERSION =
"3.5.0"
- CONFIGURATION =
Configuration.default
Class Method Summary collapse
- .always(&block) ⇒ Object
- .configuration ⇒ Object
- .configure {|CONFIGURATION| ... } ⇒ Object
-
.deprecator ⇒ Object
:nodoc:.
- .lazy(value = nil, &block) ⇒ Object
Class Method Details
.always(&block) ⇒ Object
22 23 24 |
# File 'lib/inertia_rails/inertia_rails.rb', line 22 def always(&block) AlwaysProp.new(&block) end |
.configuration ⇒ Object
14 15 16 |
# File 'lib/inertia_rails/inertia_rails.rb', line 14 def configuration CONFIGURATION end |
.configure {|CONFIGURATION| ... } ⇒ Object
10 11 12 |
# File 'lib/inertia_rails/inertia_rails.rb', line 10 def configure yield(CONFIGURATION) end |
.deprecator ⇒ Object
:nodoc:
25 26 27 |
# File 'lib/inertia_rails.rb', line 25 def self.deprecator # :nodoc: @deprecator ||= ActiveSupport::Deprecation.new end |