diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 58193ba8..3f5a2c76 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -19,6 +19,10 @@ class ApplicationController < ActionController::Base before_filter :check_if_login_required, :set_localization filter_parameter_logging :password + REDMINE_SUPPORTED_SCM.each do |scm| + require_dependency "repository/#{scm.underscore}" + end + def logged_in_user=(user) @logged_in_user = user session[:user_id] = (user ? user.id : nil)