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 617B

12345678910111213141516
  1. # frozen_string_literal: true
  2. # Load the Rails application
  3. require File.expand_path('../application', __FILE__)
  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. # Initialize the Rails application
  13. Rails.application.initialize!