Sha256: 48455b51c8917bf3751f32af14ac61ba8928b97a34b7a0ef4f639caacac30bde

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

require 'active_support'
require 'hashie'

require 'rafters/engine'

module Rafters
  extend ActiveSupport::Autoload

  eager_autoload do
    autoload :Component
    autoload :ComponentContext
    autoload :ComponentRenderer
    autoload :DirectiveProcessor
  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

2 entries across 2 versions & 1 rubygems

Version Path
rafters-0.0.2 lib/rafters.rb
rafters-0.0.1 lib/rafters.rb