user upgrades: factor out gold/platinum prices.

This commit is contained in:
evazion
2019-12-24 11:52:16 -06:00
parent 7694be9cb3
commit ef2eb9d0f5
6 changed files with 32 additions and 9 deletions

View File

@@ -18,4 +18,8 @@ module UserUpgradesHelper
raw(html)
end
def cents_to_usd(cents)
number_to_currency(cents / 100, precision: 0)
end
end