mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add filter to account activities #2691
This commit is contained in:
parent
d6a151b141
commit
ca2a2db9ad
4 changed files with 61 additions and 4 deletions
|
@ -13,5 +13,11 @@ class AccountActivity < ActiveRecord::Base
|
|||
account.balance += sum
|
||||
account.save
|
||||
end
|
||||
|
||||
class << self
|
||||
def types_for_select
|
||||
[CREATE, RENEW, ADD_CREDIT].map { |x| [I18n.t(x), x] }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue