]> git.openstreetmap.org Git - rails.git/blob - app/models/user_role.rb
Added better messages and error handling in a couple of places. Added integration...
[rails.git] / app / models / user_role.rb
1 class UserRole < ActiveRecord::Base
2
3   ALL_ROLES = ['administrator', 'moderator']
4
5   validates_inclusion_of :role, :in => ALL_ROLES
6   belongs_to :user
7
8 end