Sha256: 89af3d984f8d61031ef3eed7d991d626faeb795d27e9a3b4c91631483414066c

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

# Needed for `thread_mattr_accessor`
require 'active_support/core_ext/module/attribute_accessors_per_thread'
require 'inertia_rails/lazy'
require 'inertia_rails/configuration'

module InertiaRails
  CONFIGURATION = Configuration.default

  def self.configure
    yield(CONFIGURATION)
  end

  def self.configuration
    CONFIGURATION
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inertia_rails-3.4.0 lib/inertia_rails/inertia_rails.rb
inertia_rails-3.3.0 lib/inertia_rails/inertia_rails.rb