mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Rubocop autocorrect
This commit is contained in:
parent
f8c48a7456
commit
6c5c0b38c8
59 changed files with 533 additions and 546 deletions
|
@ -3,7 +3,7 @@ class Address < ActiveRecord::Base
|
|||
belongs_to :country
|
||||
|
||||
class << self
|
||||
def extract_attributes ah, type=:create
|
||||
def extract_attributes(ah, _type = :create)
|
||||
address_hash = {}
|
||||
address_hash = ({
|
||||
country_id: Country.find_by(iso: ah[:cc]).try(:id),
|
||||
|
@ -14,7 +14,7 @@ class Address < ActiveRecord::Base
|
|||
zip: ah[:pc]
|
||||
}) if ah.is_a?(Hash)
|
||||
|
||||
address_hash.delete_if { |k, v| v.nil? }
|
||||
address_hash.delete_if { |_k, v| v.nil? }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue