adding tests and some fixes in ability
This commit is contained in:
parent
3f8a648f17
commit
439d632251
4 changed files with 113 additions and 36 deletions
|
|
@ -54,7 +54,6 @@ class User < ActiveRecord::Base
|
|||
|
||||
def setup_role
|
||||
is_admin = true if User.count == 0
|
||||
roles << Role.where(name: 'participant') if roles.empty?
|
||||
end
|
||||
|
||||
def self.prepare(params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue