annotate .svn/pristine/5e/5e3393ea8f73093b28938371fb5146fc323458f9.svn-base @ 971:b80f97c892bc
cannam
Merge from branch "get_statistics"
author |
Chris Cannam |
date |
Fri, 19 Oct 2012 14:47:14 +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 |