Mercurial > hg > soundsoftware-site
annotate .svn/pristine/5e/5e3393ea8f73093b28938371fb5146fc323458f9.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 begin |
Chris@909 | 2 require 'rails/version' |
Chris@909 | 3 unless Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2 |
Chris@909 | 4 raise "This version of the engines plugin requires Rails 2.3.2 or later!" |
Chris@909 | 5 end |
Chris@909 | 6 end |
Chris@909 | 7 |
Chris@909 | 8 require File.join(File.dirname(__FILE__), 'lib/engines') |
Chris@909 | 9 |
Chris@909 | 10 # initialize Rails::Configuration with our own default values to spare users |
Chris@909 | 11 # some hassle with the installation and keep the environment cleaner |
Chris@909 | 12 |
Chris@909 | 13 { :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator), |
Chris@909 | 14 :default_plugin_loader => Engines::Plugin::Loader, |
Chris@909 | 15 :default_plugins => [:engines, :all] }.each do |name, default| |
Chris@909 | 16 Rails::Configuration.send(:define_method, name) { default } |
Chris@909 | 17 end |