From: Nicolas Chuche Date: Tue, 9 Sep 2008 18:07:00 +0000 (+0000) Subject: don't use direct table name X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e48c9ff9d2dac4c75ef4f4b3a8cdb1659956c0a;p=redmine.git don't use direct table name git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1794 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/project.rb b/app/models/project.rb index 55dc8121b..a51c08681 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -63,7 +63,7 @@ class Project < ActiveRecord::Base before_destroy :delete_all_members - named_scope :repository_enabled, { :include => :enabled_modules, :conditions => ['enabled_modules.name=?', 'repository'] } + named_scope :repository_enabled, { :include => :enabled_modules, :conditions => ["#{EnabledModule.table_name}.name=?", 'repository'] } def identifier=(identifier) super unless identifier_frozen?