Sha256: 4fc3dcdff4ca871e71b1ec43a183387b9f7e4aff12602f91e13e3410959fe56c

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 Bytes

Contents

require 'eitil/railtie'

# Constants

module Eitil
  
  Root   = Gem.loaded_specs['eitil'].full_gem_path
  Layers = %w( eitil_core eitil_support eitil_wrapper eitil_store eitil_integrate )

end


# Configuration

module Eitil
  
  class Railtie < ::Rails::Railtie   
    
    # Add lib dirs to $LOAD_PATH, making them available in your main app.
    Eitil::Layers.each do |layer|
      $LOAD_PATH << "#{Eitil::Root}/#{layer}/lib"
    end

  end

  mattr_accessor :get_controller_ivars_method

  def self.set_config(&block)
    yield self
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eitil-1.1.1 lib/eitil/railtie.rb
eitil-1.1.0 lib/eitil/railtie.rb
eitil-1.0.4 lib/eitil/railtie.rb
eitil-1.0.3 lib/eitil/railtie.rb