Sha256: eca8da985e6873702ad24d08199b4413d4815faa3a1973dccdbb1ba659e84194
Contents?: true
Size: 864 Bytes
Versions: 2
Compression:
Stored size: 864 Bytes
Contents
module ActiveAdmin module Dashboards class DashboardController < ResourceController # Render from here if not overriden self.default_views = 'active_admin_dashboard' clear_action_items! def index skip_sidebar! @dashboard_sections = find_sections render_or_default 'index' end protected def set_current_tab @current_tab = "Dashboard" end def find_sections ActiveAdmin::Dashboards.sections_for_namespace(namespace) end def namespace self.class.name.split('::').first.underscore.to_sym end # Return the current menu for the view. This is a helper method def current_menu ActiveAdmin.namespaces[namespace].menu end # Override to do nothing def add_section_breadcrumb end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-0.1.1 | lib/active_admin/dashboards/dashboard_controller.rb |
activeadmin-0.1.0 | lib/active_admin/dashboards/dashboard_controller.rb |