mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
Adds engines 2.1.0 plugin.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
18
vendor/plugins/engines/boot.rb
vendored
Normal file
18
vendor/plugins/engines/boot.rb
vendored
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user