You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environment.rb 586B

1234567891011121314
  1. # Load the Rails application
  2. require File.expand_path('../application', __FILE__)
  3. # Make sure there's no plugin in vendor/plugin before starting
  4. vendor_plugins_dir = File.join(Rails.root, "vendor", "plugins")
  5. if Dir.glob(File.join(vendor_plugins_dir, "*")).any?
  6. $stderr.puts "Plugins in vendor/plugins (#{vendor_plugins_dir}) are no longer allowed. " +
  7. "Please, put your Redmine plugins in the `plugins` directory at the root of your " +
  8. "Redmine directory (#{File.join(Rails.root, "plugins")})"
  9. exit 1
  10. end
  11. # Initialize the Rails application
  12. Rails.application.initialize!