Skip to content

Commit

Permalink
Euro signs
Browse files Browse the repository at this point in the history
  • Loading branch information
becousae committed Jan 9, 2017
1 parent 4a631bc commit 220a1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def confirm!
: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
end

def decline!
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
end

Expand Down

0 comments on commit 220a1e6

Please sign in to comment.