diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-06-12 23:03:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-06-12 23:03:38 +0000 |
commit | 136a2a614b23bab67815c3edb73783df0dace022 (patch) | |
tree | 18b2162f6df1792eae465f3536da58042236783e | |
parent | a681d8bf4d20dd24a4e65835d34bd8d954fd54c8 (diff) | |
download | redmine-136a2a614b23bab67815c3edb73783df0dace022.tar.gz redmine-136a2a614b23bab67815c3edb73783df0dace022.zip |
Applied this fix http://dev.rubyonrails.org/ticket/4967 to solve namespaced models dependencies problem.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@561 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/application.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 58193ba8f..3f5a2c76f 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) |