Module: InertiaRails

Defined in:
lib/inertia_rails.rb,
lib/inertia_rails/lazy.rb,
lib/inertia_rails/rspec.rb,
lib/inertia_rails/engine.rb,
lib/inertia_rails/version.rb,
lib/inertia_rails/renderer.rb,
lib/inertia_rails/controller.rb,
lib/inertia_rails/middleware.rb,
lib/inertia_rails/inertia_rails.rb,
lib/generators/inertia_rails/install_generator.rb,
app/controllers/inertia_rails/static_controller.rb

Defined Under Namespace

Modules: Configuration, Controller, RSpec Classes: Engine, Error, InstallGenerator, Lazy, Middleware, Renderer, StaticController

Constant Summary collapse

VERSION =
"3.2.0"

Class Method Summary collapse

Class Method Details

.configure {|Configuration| ... } ⇒ Object

Yields:



6
7
8
# File 'lib/inertia_rails/inertia_rails.rb', line 6

def self.configure
  yield(Configuration)
end

.deep_merge_shared_data?Boolean

Returns:

  • (Boolean)


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

def self.deep_merge_shared_data?
  Configuration.deep_merge_shared_data
end

.default_render?Boolean

Returns:

  • (Boolean)


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

def self.default_render?
  Configuration.default_render
end

.layoutObject



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

def self.layout
  Configuration.layout
end

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



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

def self.lazy(value = nil, &block)
  InertiaRails::Lazy.new(value, &block)
end

.ssr_enabled?Boolean

Returns:

  • (Boolean)


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

def self.ssr_enabled?
  Configuration.ssr_enabled
end

.ssr_urlObject



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

def self.ssr_url
  Configuration.ssr_url
end

.versionObject



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

def self.version
  Configuration.evaluated_version
end