osem-fcy/app/models/role.rb
2015-12-23 11:36:50 +02:00

9 lines
286 B
Ruby

class Role < ActiveRecord::Base
has_and_belongs_to_many :users
belongs_to :resource, polymorphic: true
scopify
LABELS = ['Attendee', 'Volunteer', 'Speaker', 'Sponsor', 'Press', 'Keynote Speaker']
ACTIONABLES = ['Organizer', 'CfP', 'Info Desk', 'Volunteers Coordinator']
end