1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-08 15:58:31 +02:00
neocities/models/tip.rb
2017-02-07 22:45:29 -08:00

12 lines
254 B
Ruby

class Tip < Sequel::Model
many_to_one :site
many_to_one :actioning_site, class: :Site
def amount_string
Monetize.parse("#{currency} #{amount.to_f}").format
end
def fee_string
Monetize.parse("#{currency} #{fee.to_f}").format
end
end