mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
fixed undef. method settings error
This commit is contained in:
parent
8d37c22c04
commit
5b0505e124
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ class BankTransaction < ApplicationRecord
|
|||
activity_type: AccountActivity::ADD_CREDIT)
|
||||
|
||||
if activity.save
|
||||
reset_pending_registrar_balance_reload
|
||||
reset_pending_registrar_balance_reload registrar
|
||||
true
|
||||
else
|
||||
false
|
||||
|
@ -105,7 +105,7 @@ class BankTransaction < ApplicationRecord
|
|||
|
||||
private
|
||||
|
||||
def reset_pending_registrar_balance_reload
|
||||
def reset_pending_registrar_balance_reload(registrar)
|
||||
return unless registrar.settings['balance_auto_reload']
|
||||
|
||||
registrar.settings['balance_auto_reload'].delete('pending')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue