You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moncef Belyamani edited this page Aug 5, 2013
·
7 revisions
Example authorizations for cancan:
can:manage,:all# includescan:dashboard
Disabling record count bars:
You can hide dashboard statistics graphs via the actions configuration. This is useful when working with huge datasets that take a long time to be queried.
Note that once you start configuring actions, it will only load the ones you specify, so if you want to disable statistics while keeping everything else at the default setting, then you need to include all the actions, like so:
RailsAdmin.configdo |c|
c.actionsdodashboarddostatisticsfalseend# collection actions index# mandatorynewexporthistory_indexbulk_delete# member actionsshoweditdeletehistory_showshow_in_appendend
Note that disabling statistics removes the entire dashboard table, not just the colored graphs.