]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_role.rb
Refactor user_changeset_comments integration test to use factories.
[rails.git] / app / models / user_role.rb
index 6bc7435aeaa6590e6421386ce7ac2c6c007488c3..4f80f195279916daac70c8225386c47da0e73d80 100644 (file)
@@ -1,5 +1,6 @@
 class UserRole < ActiveRecord::Base
   belongs_to :user
+  belongs_to :granter, :class_name => "User"
 
   ALL_ROLES = %w(administrator moderator).freeze