mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
fixed codeclimate errors
This commit is contained in:
parent
f4e0084895
commit
e7e3278267
44 changed files with 118 additions and 150 deletions
|
@ -44,6 +44,7 @@ class ApiUser < User
|
|||
after_initialize :set_defaults
|
||||
def set_defaults
|
||||
return unless new_record?
|
||||
|
||||
self.active = true unless saved_change_to_active?
|
||||
end
|
||||
|
||||
|
@ -76,7 +77,7 @@ class ApiUser < User
|
|||
end
|
||||
|
||||
def linked_with?(another_api_user)
|
||||
another_api_user.identity_code == self.identity_code
|
||||
another_api_user.identity_code == identity_code
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue