small fixes

This commit is contained in:
Stella Rouzi 2014-07-24 22:13:05 +03:00
parent 0684dbad19
commit 938abce9d2
2 changed files with 3 additions and 2 deletions

View file

@ -5,5 +5,6 @@ class Role < ActiveRecord::Base
scopify 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 end

View file

@ -53,7 +53,7 @@ class User < ActiveRecord::Base
end end
def setup_role def setup_role
is_admin = true if User.count == 0 self.is_admin = true if User.count == 0
end end
def self.prepare(params) def self.prepare(params)