Class: ActiveAdmin::Views::DashboardSection
Instance Method Summary collapse
- #build(section) ⇒ Object
- #title ⇒ Object protected
Methods inherited from Panel
Methods inherited from Component
#default_class_name, #initialize, #tag_name
Constructor Details
This class inherits a constructor from ActiveAdmin::Component
Instance Method Details
#build(section) ⇒ Object
5 6 7 8 9 |
# File 'lib/active_admin/views/dashboard_section_renderer.rb', line 5 def build(section) @section = section super(title, :icon => @section.icon) instance_eval &@section.block end |
#title ⇒ Object (protected)
13 14 15 |
# File 'lib/active_admin/views/dashboard_section_renderer.rb', line 13 def title @section.name.to_s.titleize end |