Sha256: f8f0e8c6da587789d91d2227fc49d55cb3ce87b9a65a6531b4c1d9f3cafd2350

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 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/helpers"

module Futurism
  extend ActiveSupport::Autoload

  autoload :Helpers, "futurism/helpers"

  mattr_accessor :skip_in_test, default: false

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

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

  mattr_accessor :logger
  self.logger ||= Rails.logger ? Rails.logger.new : Logger.new($stdout)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
futurism-1.2.0 lib/futurism.rb
futurism-1.2.0.rc2 lib/futurism.rb
futurism-1.2.0.rc1 lib/futurism.rb
futurism-1.2.0.pre11 lib/futurism.rb
futurism-1.2.0.pre10 lib/futurism.rb