]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_role.rb
First version of blocking feature. Allows both time-based (for map protection) and...
[rails.git] / app / models / user_role.rb
diff --git a/app/models/user_role.rb b/app/models/user_role.rb
new file mode 100644 (file)
index 0000000..efa540f
--- /dev/null
@@ -0,0 +1,8 @@
+class UserRole < ActiveRecord::Base
+
+  ALL_ROLES = ['administrator', 'moderator']
+
+  validates_inclusion_of :role, :in => ALL_ROLES
+  belongs_to :user
+
+end