##// END OF EJS Templates
Merged r2302 from trunk (#2466)....
Merged r2302 from trunk (#2466). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2306 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1640:c28cbd5790e5
r2304:5e6ff86f4736
Show More
boot.rb
17 lines | 688 B | text/x-ruby | RubyLexer
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