mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +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
|
||||
return BigDecimal('0.0') if @amount.blank?
|
||||
BigDecimal(@amount.to_s.gsub(/,/, '.'), 10)
|
||||
BigDecimal(@amount.to_s.tr(',', '.'), 10)
|
||||
end
|
||||
|
||||
def issue_prepayment_invoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue