1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Merge branch 'main' into jose/line-charts

This commit is contained in:
Jose Farias 2024-04-20 12:55:13 -06:00 committed by GitHub
commit c65b08efe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 66 additions and 20 deletions

View file

@ -58,6 +58,10 @@ class Money::Currency
@default_precision = currency_data["default_precision"]
end
def step
(1.0/10**default_precision)
end
def <=>(other)
return nil unless other.is_a?(Money::Currency)
@iso_code <=> other.iso_code