Sha256: 8920d23e54d3f0824111f8ad5ab475a893177fdf7feb9710fddaff3d4a41aad9

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

require 'active_support'
require 'hashie'

require 'rafters/railtie'

module Rafters
  extend ActiveSupport::Autoload

  eager_autoload do
    autoload :Component
    autoload :ComponentContext
    autoload :ComponentRenderer
    autoload :Source
  end

  def self.setup
    yield self
  end

  mattr_accessor :view_paths
  @@view_paths = nil

  mattr_accessor :asset_paths
  @@asset_paths = nil
end

ActionController::Base.send(:include, Rafters::ComponentContext)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rafters-1.2.0 lib/rafters.rb
rafters-1.1.0 lib/rafters.rb
rafters-1.0.0 lib/rafters.rb
rafters-0.2.0 lib/rafters.rb