small fixes
This commit is contained in:
parent
0684dbad19
commit
938abce9d2
2 changed files with 3 additions and 2 deletions
|
|
@ -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