Add account activity to registrar

This commit is contained in:
Martin Lensment 2015-04-16 13:21:43 +03:00
parent f2f2e42608
commit 32073ca862
15 changed files with 117 additions and 32 deletions

View file

@ -13,9 +13,8 @@ class Invoice < ActiveRecord::Base
account_activity.present?
end
def paid_at
# TODO: Cache this?
account_activity.try(:bank_transaction).try(:paid_at)
def receipt_date
account_activity.try(:created_at)
end
def to_s