]> git.openstreetmap.org Git - rails.git/blob - app/models/user_role.rb
Tried to DRY the user_blocks controller. Moved the configuration of the blocking...
[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