mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
Replace gsub with tr for better performance
This commit is contained in:
parent
c028c0e477
commit
066123bcf7
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Deposit
|
||||||
|
|
||||||
def amount
|
def amount
|
||||||
return BigDecimal('0.0') if @amount.blank?
|
return BigDecimal('0.0') if @amount.blank?
|
||||||
BigDecimal(@amount.to_s.gsub(/,/, '.'), 10)
|
BigDecimal(@amount.to_s.tr(',', '.'), 10)
|
||||||
end
|
end
|
||||||
|
|
||||||
def issue_prepayment_invoice
|
def issue_prepayment_invoice
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue