mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Reduce complexity of autobindable?() conditional
This commit is contained in:
parent
be960457e6
commit
5991ea6be7
2 changed files with 8 additions and 11 deletions
|
@ -113,7 +113,7 @@ class Invoice < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.create_from_transaction!(transaction)
|
||||
registrar_user = Registrar.find_by(reference_no: transasction.parsed_ref_number)
|
||||
registrar_user = Registrar.find_by(reference_no: transaction.parsed_ref_number)
|
||||
return unless registrar_user
|
||||
|
||||
registrar_user.issue_prepayment_invoice(amount: transaction.sum,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue