mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Rubocop updates
This commit is contained in:
parent
37b74d2086
commit
670df629b4
1 changed files with 1 additions and 2 deletions
|
@ -44,7 +44,7 @@ class Registrar < ActiveRecord::Base
|
||||||
|
|
||||||
after_save :update_whois_records
|
after_save :update_whois_records
|
||||||
def update_whois_records
|
def update_whois_records
|
||||||
return true unless (changed? && (changes.keys & WHOIS_TRIGGERS).present?)
|
return true unless changed? && (changes.keys & WHOIS_TRIGGERS).present?
|
||||||
whois_records.map(&:save) # slow currently
|
whois_records.map(&:save) # slow currently
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ class Registrar < ActiveRecord::Base
|
||||||
def ordered
|
def ordered
|
||||||
order(name: :asc)
|
order(name: :asc)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def issue_prepayment_invoice(amount, description = nil) # rubocop:disable Metrics/MethodLength
|
def issue_prepayment_invoice(amount, description = nil) # rubocop:disable Metrics/MethodLength
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue