Skip to content

Commit

Permalink
fixes #23862 - scoped search audit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom McKay authored and tbrisker committed Jun 24, 2018
1 parent aa806e8 commit 662aca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/audit_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module AuditSearch
belongs_to :search_nics, -> { where('audits.auditable_type LIKE ?', "Nic::%") }, :class_name => 'Nic::Base', :foreign_key => :auditable_id
belongs_to :search_settings, :class_name => 'Setting', :foreign_key => :auditable_id

scoped_search :on => [:username, :remote_address], :complete_value => true
scoped_search :on => [:username, :remote_address, :comment], :complete_value => true
scoped_search :on => :audited_changes, :rename => 'changes'
scoped_search :on => :created_at, :complete_value => true, :rename => :time, :default_order => :desc
scoped_search :on => :action, :complete_value => { :create => 'create', :update => 'update', :delete => 'destroy' }
Expand Down

0 comments on commit 662aca7

Please sign in to comment.