To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 7c / 7ca41b876deb7df7c977fc8d4970f14eaa3f94ed.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (592 Bytes)
| 1 | 1296:038ba2d95de8 | Chris | # Load the rails application |
|---|---|---|---|
| 2 | require File.expand_path('../application', __FILE__)
|
||
| 3 | |||
| 4 | # Make sure there's no plugin in vendor/plugin before starting |
||
| 5 | vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins") |
||
| 6 | if Dir.glob(File.join(vendor_plugins_dir, "*")).any? |
||
| 7 | $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
|
||
| 8 | "Please, put your Redmine plugins in the `plugins` directory at the root of your " + |
||
| 9 | "Redmine directory (#{File.join(Rails.root, "plugins")})"
|
||
| 10 | exit 1 |
||
| 11 | end |
||
| 12 | |||
| 13 | # Initialize the rails application |
||
| 14 | RedmineApp::Application.initialize! |