Sha256: 3a4681fbd7f834c0aef09efc864a8bd28c743b4e817cabad02d57bebfbe7edd8

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

begin
  silence_warnings { require 'rails/version' } # it may already be loaded
  unless Rails::VERSION::MAJOR >= 1 && Rails::VERSION::MINOR >= 2
    raise "This version of the engines plugin requires Rails 1.2 or later!"
  end
end

# First, require the engines module & core methods
require "engines"

# Load this before we get actually start engines
require "engines/rails_extensions/rails_initializer"

# Start the engines mechanism.
Engines.init(config, self)

# Now that we've defined the engines module, load up any extensions
[:rails,
 :rails_initializer,
 :dependencies,
 :active_record,
 :migrations,
 :templates,
 :public_asset_helpers,
 :routing
].each do |f|
  require "engines/rails_extensions/#{f}"
end

# Load the testing extensions, if we are in the test environment.
require "engines/testing" if RAILS_ENV == "test"

# Load the Rails::Info module so that plugins can insert information into it.
begin
  require 'rails/info'
rescue Exception
  # If this file can't be loaded, it's probably because we're running in an
  # environment where Rails' builtins aren't yet in the load path.
  # For the moment, just ignore this. See Ticket #261
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parlement-0.11 vendor/plugins/engines/init.rb
parlement-0.12 vendor/plugins/engines/init.rb
parlement-0.13 vendor/plugins/engines/init.rb
parlement-0.14 vendor/plugins/engines/init.rb