]> source.dussan.org Git - redmine.git/commitdiff
don't use direct table name
authorNicolas Chuche <nicolas.chuche@barna.be>
Tue, 9 Sep 2008 18:07:00 +0000 (18:07 +0000)
committerNicolas Chuche <nicolas.chuche@barna.be>
Tue, 9 Sep 2008 18:07:00 +0000 (18:07 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1794 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 55dc8121be895586eb7893b467c8cd4cfb85ef34..a51c08681662ec4821f5d6148acef84e8fb194dd 100644 (file)
@@ -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?