thewoolleyman / engines forked from lazyatom/engines

The Rails Engines plugin

This URL has Read+Write access

engines / boot.rb
100644 18 lines (15 sloc) 0.688 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
begin
  require 'rails/version'
  unless Rails::VERSION::MAJOR >= 2 ||
         (Rails::VERSION::MAJOR >= 1 && Rails::VERSION::MINOR >= 99)
    raise "This version of the engines plugin requires Rails 2.0 or later!"
  end
end
 
require File.join(File.dirname(__FILE__), 'lib/engines')
 
# initialize Rails::Configuration with our own default values to spare users
# some hassle with the installation and keep the environment cleaner
 
{ :default_plugin_locators => [Engines::Plugin::FileSystemLocator],
  :default_plugin_loader => Engines::Plugin::Loader,
  :default_plugins => [:engines, :all] }.each do |name, default|
  Rails::Configuration.send(:define_method, name) { default }
end