Skip to content

Commit

Permalink
add web_events tab
Browse files Browse the repository at this point in the history
  • Loading branch information
valzav committed Jun 23, 2017
1 parent 846d0eb commit 9dcb220
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/admin/web_event.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ActiveAdmin.register WebEvent do
menu label: 'Events'
index do
column :id
column :event_type
column :value
column :created_at
actions defaults: false do |a|
item 'View', admin_web_event_path(a)
end
end

filter :event_type, as: :check_boxes, collection: ['csp_violation', 'client_error', 'api/login_account', 'login_attempt']

end

0 comments on commit 9dcb220

Please sign in to comment.