Sha256: 91d0de4a712a5d1ed3fb245f3f3e1f5ae63aa26253cc63060ffc86da2637729e

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

require 'active_support'
require 'hashie'

require 'rafters/railtie'

module Rafters
  extend ActiveSupport::Autoload

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

6 entries across 6 versions & 1 rubygems

Version Path
rafters-0.1.3 lib/rafters.rb
rafters-0.1.2 lib/rafters.rb
rafters-0.1.1 lib/rafters.rb
rafters-0.1.0 lib/rafters.rb
rafters-0.0.5 lib/rafters.rb
rafters-0.0.4 lib/rafters.rb