The count! class method is of Loan class.

class Loan 
  include DataMapper::Resource 
  ...
  def self.count!(money_flow) 
    loan = get(money_flow.currency, money_flow.giver_id, 
money_flow.receiver_id) 
    loan.amount += money_flow.amount 
  end 
  ...
end

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to