Mercurial > hg > soundsoftware-site
diff .svn/pristine/7c/7ca41b876deb7df7c977fc8d4970f14eaa3f94ed.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/7c/7ca41b876deb7df7c977fc8d4970f14eaa3f94ed.svn-base Fri Jun 14 09:02:21 2013 +0100 @@ -0,0 +1,14 @@ +# Load the rails application +require File.expand_path('../application', __FILE__) + +# Make sure there's no plugin in vendor/plugin before starting +vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins") +if Dir.glob(File.join(vendor_plugins_dir, "*")).any? + $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " + + "Please, put your Redmine plugins in the `plugins` directory at the root of your " + + "Redmine directory (#{File.join(Rails.root, "plugins")})" + exit 1 +end + +# Initialize the rails application +RedmineApp::Application.initialize!