small fixes
This commit is contained in:
parent
0684dbad19
commit
938abce9d2
2 changed files with 3 additions and 2 deletions
|
|
@ -5,5 +5,6 @@ class Role < ActiveRecord::Base
|
|||
|
||||
scopify
|
||||
|
||||
LABELS = ['Participant', 'Attendee', 'Volunteer', 'Speaker', 'Sponsor', 'Press', 'Organizer', 'CfP', 'Info Desk', 'Volunteers Coordinator']
|
||||
LABELS = ['Participant', 'Attendee', 'Volunteer', 'Speaker', 'Sponsor', 'Press',
|
||||
'Organizer', 'CfP', 'Info Desk', 'Volunteers Coordinator']
|
||||
end
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def setup_role
|
||||
is_admin = true if User.count == 0
|
||||
self.is_admin = true if User.count == 0
|
||||
end
|
||||
|
||||
def self.prepare(params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue