Class: ActiveAdmin::Filters::ActiveSidebar
- Inherits:
-
SidebarSection
- Object
- SidebarSection
- ActiveAdmin::Filters::ActiveSidebar
- Defined in:
- lib/active_admin/filters/active_sidebar.rb
Instance Attribute Summary
Attributes inherited from SidebarSection
Instance Method Summary collapse
- #block ⇒ Object
-
#initialize ⇒ ActiveSidebar
constructor
A new instance of ActiveSidebar.
- #sidebar_options ⇒ Object protected
Methods inherited from SidebarSection
#custom_class, #id, #partial_name, #priority
Methods included from OptionalDisplay
Constructor Details
#initialize ⇒ ActiveSidebar
Returns a new instance of ActiveSidebar.
8 9 10 |
# File 'lib/active_admin/filters/active_sidebar.rb', line 8 def initialize super "search_status", end |
Instance Method Details
#block ⇒ Object
12 13 14 15 16 17 |
# File 'lib/active_admin/filters/active_sidebar.rb', line 12 def block -> { h3 I18n.t("active_admin.search_status.headline") } end |
#sidebar_options ⇒ Object (protected)
21 22 23 |
# File 'lib/active_admin/filters/active_sidebar.rb', line 21 def { only: :index, if: -> { active_admin_config.current_filters_enabled? && (params[:q] || params[:scope]) } } end |