Chore: Minor bugfixes and housekeeping tasks (#896)

This commit is contained in:
Sojan Jose
2020-06-02 23:50:39 +05:30
committed by GitHub
parent 93d8a25877
commit dafabac796
21 changed files with 271 additions and 51 deletions

View File

@@ -55,7 +55,11 @@ class AccessTokenDashboard < Administrate::BaseDashboard
# COLLECTION_FILTERS = {
# open: ->(resources) { resources.where(open: true) }
# }.freeze
COLLECTION_FILTERS = {}.freeze
COLLECTION_FILTERS = {
user: ->(resources) { resources.where(owner_type: 'User') },
super_admin: ->(resources) { resources.where(owner_type: 'SuperAdmin') },
agent_bot: ->(resources) { resources.where(owner_type: 'AgentBot') }
}.freeze
# Overwrite this method to customize how access tokens are displayed
# across all pages of the admin dashboard.