Sha256: 4c148f71395c86353bf50f219f5b141b6a07d99302fcfe63d38147eab99e9d6b

Contents?: true

Size: 766 Bytes

Versions: 12

Compression:

Stored size: 766 Bytes

Contents

require "rails"
require "action_cable"
require "cable_ready"
require "futurism/engine"
require "futurism/message_verifier"
require "futurism/resolver/resources"
require "futurism/resolver/controller"
require "futurism/resolver/controller/renderer"
require "futurism/channel"
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

12 entries across 12 versions & 1 rubygems

Version Path
futurism-1.2.0.pre9 lib/futurism.rb~
futurism-1.2.0.pre8 lib/futurism.rb~
futurism-1.2.0.pre7 lib/futurism.rb~
futurism-1.2.0.pre6 lib/futurism.rb
futurism-1.2.0.pre5 lib/futurism.rb
futurism-1.2.0.pre4 lib/futurism.rb
futurism-1.2.0.pre3 lib/futurism.rb
futurism-1.2.0.pre2 lib/futurism.rb
futurism-1.2.0.pre1 lib/futurism.rb
futurism-1.1.0 lib/futurism.rb
futurism-1.0.1 lib/futurism.rb
futurism-1.0.0 lib/futurism.rb