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

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

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

.configurationObject



14
15
16
# File 'lib/inertia_rails/inertia_rails.rb', line 14

def configuration
  CONFIGURATION
end

.configure {|CONFIGURATION| ... } ⇒ Object

Yields:



10
11
12
# File 'lib/inertia_rails/inertia_rails.rb', line 10

def configure
  yield(CONFIGURATION)
end

.deprecatorObject

:nodoc:



25
26
27
# File 'lib/inertia_rails.rb', line 25

def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.lazy(value = nil, &block) ⇒ Object



18
19
20
# File 'lib/inertia_rails/inertia_rails.rb', line 18

def lazy(value = nil, &block)
  LazyProp.new(value, &block)
end