mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
Updated dependency ransack to v4
This commit is contained in:
parent
a78f5b901f
commit
37c16a067d
16 changed files with 139 additions and 36 deletions
|
@ -25,6 +25,14 @@ class AccountActivity < ApplicationRecord
|
|||
end
|
||||
|
||||
class << self
|
||||
def ransackable_attributes(auth_object = nil)
|
||||
super
|
||||
end
|
||||
|
||||
def ransackable_associations(auth_object = nil)
|
||||
super
|
||||
end
|
||||
|
||||
def types_for_select
|
||||
[CREATE, RENEW, ADD_CREDIT, UPDATE_CREDIT].map { |x| [I18n.t(x), x] }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue