]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Fixed existing tests
[rails.git] / app / models / user.rb
index 4a36b3e61e5c2dbca369528bae2356f7dcc87f22..866074766e462c176c2c18a4b5814c1a9aba81b3 100644 (file)
@@ -26,7 +26,9 @@ class User < ActiveRecord::Base
 
   has_many :roles, :class_name => "UserRole"
 
-  has_many :issues
+  has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id
+  has_many :issue_comments
+  
   has_many :reports
 
   scope :visible, -> { where(:status => %w(pending active confirmed)) }