Fix indentation
This commit is contained in:
parent
46dff6910d
commit
87cdb156ce
1 changed files with 4 additions and 4 deletions
|
@ -912,11 +912,11 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def access_level=(new_level)
|
||||
new_level = new_level.to_s
|
||||
return unless %w(admin regular).include?(new_level)
|
||||
new_level = new_level.to_s
|
||||
return unless %w(admin regular).include?(new_level)
|
||||
|
||||
self.admin = (new_level == 'admin')
|
||||
end
|
||||
self.admin = (new_level == 'admin')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
|
Loading…
Reference in a new issue