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/defer_prop.rb,
lib/inertia_rails/merge_prop.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/optional_prop.rb,
lib/inertia_rails/generators/helper.rb,
lib/patches/debug_exceptions/patch-5-0.rb,
lib/patches/debug_exceptions/patch-5-1.rb,
lib/inertia_rails/ignore_on_first_load_prop.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, DeferProp, Engine, Error, IgnoreOnFirstLoadProp, LazyProp, MergeProp, Middleware, OptionalProp, Renderer, StaticController

Constant Summary collapse

VERSION =
"3.6.0"
CONFIGURATION =
Configuration.default

Class Method Summary collapse

Class Method Details

.always(&block) ⇒ Object



30
31
32
# File 'lib/inertia_rails/inertia_rails.rb', line 30

def always(&block)
  AlwaysProp.new(&block)
end

.configurationObject



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

def configuration
  CONFIGURATION
end

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

Yields:



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

def configure
  yield(CONFIGURATION)
end

.defer(group: nil, merge: nil, &block) ⇒ Object



38
39
40
# File 'lib/inertia_rails/inertia_rails.rb', line 38

def defer(group: nil, merge: nil, &block)
  DeferProp.new(group: group, merge: merge, &block)
end

.deprecatorObject

:nodoc:



27
28
29
# File 'lib/inertia_rails.rb', line 27

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

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



22
23
24
# File 'lib/inertia_rails/inertia_rails.rb', line 22

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

.merge(&block) ⇒ Object



34
35
36
# File 'lib/inertia_rails/inertia_rails.rb', line 34

def merge(&block)
  MergeProp.new(&block)
end

.optional(&block) ⇒ Object



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

def optional(&block)
  OptionalProp.new(&block)
end