Euro signs

This commit is contained in:
benji 2017-01-09 16:25:08 +01:00
parent 4a631bc0c2
commit 220a1e6684

View file

@ -15,7 +15,7 @@ class Request < ActiveRecord::Base
:debtor_id, :creditor_id, :issuer_id, :issuer_type, :amount, :message :debtor_id, :creditor_id, :issuer_id, :issuer_type, :amount, :message
) )
creditor.notifications.create message: "Your request for #{amount} for \"#{message}\" has been accepted by #{debtor.name}." creditor.notifications.create message: "Your request for #{amount/100.0} for \"#{message}\" has been accepted by #{debtor.name}."
update_attributes status: :confirmed update_attributes status: :confirmed
end end
@ -23,7 +23,7 @@ class Request < ActiveRecord::Base
def decline! def decline!
return unless open? return unless open?
creditor.notifications.create message: "#{debtor.name} refuses to pay #{amount} for \"#{message}\"." creditor.notifications.create message: "#{debtor.name} refuses to pay #{amount/100.0} for \"#{message}\"."
update_attributes status: :declined update_attributes status: :declined
end end