Sha256: 0586b8129f6bd54b87f8df06d8d966d3eeadeeac7d821bd585b9ab57de3a27c3
Contents?: true
Size: 870 Bytes
Versions: 5
Compression:
Stored size: 870 Bytes
Contents
# DashboardManifest tells Administrate which dashboards to display class DashboardManifest # `#dashboards` # Returns a list of dashboards to display in the side navigation menu # # These are all of the rails models that we found in your database # at the time you installed Administrate. # # To show or hide dashboards, add or remove the model name from this list. # Dashboards returned from this method must be Rails models for Administrate # to work correctly. def dashboards [ <% dashboard_resources.each do |model| -%> :<%= model %>, <% end -%> ] end # `#root_dashboard` # Returns the name of the dashboard that will be displayed # at "http://your_site.com/admin" # # This dashboard will likely be the first page that admins see # when they log into the dashboard. def root_dashboard dashboards.first end end
Version data entries
5 entries across 5 versions & 1 rubygems