Code to display tips submitted on news feed

This commit is contained in:
Kyle Drake 2017-02-07 22:45:29 -08:00
parent 621e45b6a2
commit cc07e90b44
11 changed files with 131 additions and 12 deletions

View file

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