annotate config/environment.rb @ 1140:59fd55892a7b
redmine-2.2-integration
Restore rendering of members list
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Thu, 10 Jan 2013 15:23:35 +0000 |
parents |
bb32da3bea34 |
children |
16826c3afbba |
rev |
line source |
Chris@1115
|
1 # Load the rails application
|
Chris@1115
|
2 require File.expand_path('../application', __FILE__)
|
Chris@0
|
3
|
Chris@1115
|
4 # Make sure there's no plugin in vendor/plugin before starting
|
Chris@1115
|
5 vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
|
Chris@1115
|
6 if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
|
Chris@1115
|
7 $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
|
Chris@1115
|
8 "Please, put your Redmine plugins in the `plugins` directory at the root of your " +
|
Chris@1115
|
9 "Redmine directory (#{File.join(Rails.root, "plugins")})"
|
Chris@1115
|
10 exit 1
|
Chris@909
|
11 end
|
Chris@0
|
12
|
Chris@1115
|
13 # Initialize the rails application
|
Chris@1115
|
14 RedmineApp::Application.initialize!
|