mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add test & error message if not enough funds for renew
This commit is contained in:
parent
95a789ab60
commit
13455b398c
3 changed files with 17 additions and 0 deletions
|
@ -42,6 +42,7 @@ module Domains
|
|||
|
||||
def manage_errors(task)
|
||||
errors.merge!(task.errors) unless task.valid?
|
||||
errors.add(:domain, I18n.t('not_enough_funds')) unless task.result
|
||||
end
|
||||
|
||||
def run_task(domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue