Sha256: 689a5d351d73c6dfdfd2d3f08e7f4a569f2756299c410147a5391381af5802b0

Contents?: true

Size: 966 Bytes

Versions: 4

Compression:

Stored size: 966 Bytes

Contents

require "rails"

require "action_cable"
require "cable_ready"
require "futurism/configuration"
require "futurism/engine"
require "futurism/message_verifier"
require "futurism/options_transformer"
require "futurism/resolver/resources"
require "futurism/resolver/controller"
require "futurism/resolver/controller/renderer"
require "futurism/resolver/controller/instrumentation"
require "futurism/helpers"

module Futurism
  extend ActiveSupport::Autoload

  autoload :Helpers, "futurism/helpers"

  mattr_accessor :skip_in_test, default: false
  mattr_accessor :instrumentation, default: false
  mattr_accessor :logger

  mattr_writer :default_controller
  def self.default_controller
    (@@default_controller || "::ApplicationController").to_s.constantize
  end

  def self.skip_in_test?
    skip_in_test.present?
  end

  def self.instrumentation?
    instrumentation.present?
  end

  ActiveSupport.on_load(:action_view) do
    include Futurism::Helpers
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
futurism-1.4.2 lib/futurism.rb
futurism-1.4.1 lib/futurism.rb
futurism-1.4.0 lib/futurism.rb
futurism-1.3.0 lib/futurism.rb