mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Add account activity to registrar
This commit is contained in:
parent
f2f2e42608
commit
32073ca862
15 changed files with 117 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue