]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
fix tests for site controller
[rails.git] / app / models / user.rb
index 036f2fdc478692bc4f52b17ea8ed8f8aaf42d1f1..aaa00169f5210f2ac5fda89f0e1b8bd5d839811e 100644 (file)
@@ -75,6 +75,11 @@ class User < ActiveRecord::Base
 
   has_many :roles, :class_name => "UserRole"
 
+  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]) }
   scope :active, -> { where(:status => %w[active confirmed]) }
   scope :identifiable, -> { where(:data_public => true) }