Class: Audited::Audit

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/audited/ui.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(auth_object = nil) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/audited/ui.rb', line 14

def self.ransackable_associations(auth_object = nil)
  [
    "associated",
    "auditable",
    "user"
  ]
end

.ransackable_attributes(auth_object = nil) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/audited/ui.rb', line 22

def self.ransackable_attributes(auth_object = nil)
  [
    "action",
    "associated_id",
    "associated_type",
    "auditable_id",
    "auditable_type",
    "audited_changes",
    "comment",
    "created_at",
    "id",
    "raw_audited_changes",
    "remote_address",
    "request_uuid",
    "user_id",
    "user_type",
    "username",
    "version"
  ]
end