mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Corrected codeclimate issues
This commit is contained in:
parent
7b7a25069c
commit
8c8e9c8619
1 changed files with 4 additions and 4 deletions
|
@ -146,8 +146,8 @@ module Depp
|
||||||
end
|
end
|
||||||
|
|
||||||
def save
|
def save
|
||||||
return false unless valid?
|
return false unless valid?
|
||||||
|
|
||||||
hash = {
|
hash = {
|
||||||
id: { value: code },
|
id: { value: code },
|
||||||
postalInfo: {
|
postalInfo: {
|
||||||
|
@ -175,8 +175,8 @@ module Depp
|
||||||
handle_errors(data)
|
handle_errors(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
def update_attributes(params)
|
def update_attributes(params)
|
||||||
return false unless valid?
|
return false unless valid?
|
||||||
|
|
||||||
self.ident_country_code = params[:ident_country_code]
|
self.ident_country_code = params[:ident_country_code]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue