Add filter to account activities #2691

This commit is contained in:
Martin Lensment 2015-07-07 11:22:32 +03:00
parent d6a151b141
commit ca2a2db9ad
4 changed files with 61 additions and 4 deletions

View file

@ -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