2013-01-07 09:04:09 +01:00
|
|
|
class Role < ActiveRecord::Base
|
2014-08-12 11:51:59 +03:00
|
|
|
attr_accessible :name, :description
|
2013-01-07 09:04:09 +01:00
|
|
|
has_and_belongs_to_many :users
|
2014-08-12 11:51:59 +03:00
|
|
|
belongs_to :resource, polymorphic: true
|
|
|
|
|
|
|
|
|
|
scopify
|
|
|
|
|
|
|
|
|
|
LABELS = ['Attendee', 'Volunteer', 'Speaker', 'Sponsor', 'Press', 'Keynote Speaker']
|
|
|
|
|
ACTIONABLES = ['Organizer', 'CfP', 'Info Desk', 'Volunteers Coordinator']
|
2014-06-30 17:07:53 +02:00
|
|
|
end
|