To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / engines / boot.rb @ 442:753f1380d6bc

History | View | Annotate | Download (732 Bytes)

1
begin
2
  require 'rails/version'
3
  unless Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2
4
    raise "This version of the engines plugin requires Rails 2.3.2 or later!"
5
  end
6
end
7

    
8
require File.join(File.dirname(__FILE__), 'lib/engines')
9

    
10
# initialize Rails::Configuration with our own default values to spare users 
11
# some hassle with the installation and keep the environment cleaner
12

    
13
{ :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator),
14
  :default_plugin_loader => Engines::Plugin::Loader,
15
  :default_plugins => [:engines, :all] }.each do |name, default|    
16
  Rails::Configuration.send(:define_method, name) { default }
17
end