]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Added sortable headers + search + reportable Notes
[rails.git] / app / models / user.rb
index 866074766e462c176c2c18a4b5814c1a9aba81b3..1c38ea1ccdac3708f336381c77c0ce4414179f04 100644 (file)
@@ -27,6 +27,7 @@ class User < ActiveRecord::Base
   has_many :roles, :class_name => "UserRole"
 
   has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id
   has_many :roles, :class_name => "UserRole"
 
   has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id
+  has_one :issue, :class_name => "Issue", :foreign_key => :updated_by
   has_many :issue_comments
   
   has_many :reports
   has_many :issue_comments
   
   has_many :reports