mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
Code to display tips submitted on news feed
This commit is contained in:
parent
621e45b6a2
commit
cc07e90b44
11 changed files with 131 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue