Sha256: 714926bcf0e995ecf1aa1162ca2b0e0369341abb643adab81d6ba89bf1621624

Contents?: true

Size: 648 Bytes

Versions: 18

Compression:

Stored size: 648 Bytes

Contents

# 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   
    
    Eitil::Layers.each do |layer|

      # Add lib dirs to $LOAD_PATH, making them available in your main app.
      $LOAD_PATH << "#{Eitil::Root}/#{layer}/lib"

      # Load railtie into main app, enabling on the fly inclusion of dispatches.
      require "#{layer}/railtie"
      
    end

  end

  mattr_accessor :get_controller_ivars_method

  def self.set_config(&block)
    yield self
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
eitil-1.1.19 lib/eitil/railtie.rb
eitil-1.1.18 lib/eitil/railtie.rb
eitil-1.1.17 lib/eitil/railtie.rb
eitil-1.1.16 lib/eitil/railtie.rb
eitil-1.1.15 lib/eitil/railtie.rb
eitil-1.1.14 lib/eitil/railtie.rb
eitil-1.1.13 lib/eitil/railtie.rb
eitil-1.1.12 lib/eitil/railtie.rb
eitil-1.1.11 lib/eitil/railtie.rb
eitil-1.1.10 lib/eitil/railtie.rb
eitil-1.1.9 lib/eitil/railtie.rb
eitil-1.1.8 lib/eitil/railtie.rb
eitil-1.1.7 lib/eitil/railtie.rb
eitil-1.1.6 lib/eitil/railtie.rb
eitil-1.1.5 lib/eitil/railtie.rb
eitil-1.1.4 lib/eitil/railtie.rb
eitil-1.1.3 lib/eitil/railtie.rb
eitil-1.1.2 lib/eitil/railtie.rb