annotate vendor/plugins/engines/.svn/text-base/boot.rb.svn-base @ 266:9c5077177fd2
bug_89
Loosen line spacing generally, and make some other adjustments to layout in Wiki pages in particular
| author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
| date |
Tue, 15 Mar 2011 13:44:25 +0000 |
| parents |
513646585e45 |
| children |
|
| rev |
line source |
|
Chris@0
|
1 begin
|
|
Chris@0
|
2 require 'rails/version'
|
|
Chris@0
|
3 unless Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2
|
|
Chris@0
|
4 raise "This version of the engines plugin requires Rails 2.3.2 or later!"
|
|
Chris@0
|
5 end
|
|
Chris@0
|
6 end
|
|
Chris@0
|
7
|
|
Chris@0
|
8 require File.join(File.dirname(__FILE__), 'lib/engines')
|
|
Chris@0
|
9
|
|
Chris@0
|
10 # initialize Rails::Configuration with our own default values to spare users
|
|
Chris@0
|
11 # some hassle with the installation and keep the environment cleaner
|
|
Chris@0
|
12
|
|
Chris@0
|
13 { :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator),
|
|
Chris@0
|
14 :default_plugin_loader => Engines::Plugin::Loader,
|
|
Chris@0
|
15 :default_plugins => [:engines, :all] }.each do |name, default|
|
|
Chris@0
|
16 Rails::Configuration.send(:define_method, name) { default }
|
|
Chris@0
|
17 end |