osem-fcy/app/models/role.rb

10 lines
286 B
Ruby
Raw Normal View History

2013-01-07 09:04:09 +01:00
class Role < ActiveRecord::Base
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