mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Rename a variable from minimum_deposit to minimum_allowed_amount
This commit is contained in:
parent
0ea1045259
commit
b8c082090e
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@ class Deposit
|
||||||
validate :validate_amount
|
validate :validate_amount
|
||||||
|
|
||||||
def validate_amount
|
def validate_amount
|
||||||
minimum_deposit = [0.01, Setting.minimum_deposit].max
|
minimum_allowed_amount = [0.01, Setting.minimum_deposit].max
|
||||||
return if amount >= minimum_deposit
|
return if amount >= minimum_allowed_amount
|
||||||
errors.add(:amount, I18n.t(:is_too_small_minimum_deposit_is, amount: minimum_deposit,
|
errors.add(:amount, I18n.t(:is_too_small_minimum_deposit_is, amount: minimum_allowed_amount,
|
||||||
currency: 'EUR'))
|
currency: 'EUR'))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue