Sha256: 4b0ba72ecc9da09f73ad54f91d1a23c7e893cd97e8708903e3e0de851791e2e9

Contents?: true

Size: 334 Bytes

Versions: 21

Compression:

Stored size: 334 Bytes

Contents

module ActiveAdmin
  module Views
    class DashboardSection < ActiveAdmin::Views::Panel

      def build(section)
        @section = section
        super(title, :icon => @section.icon)
        instance_eval &@section.block
      end

      protected

      def title
        @section.name.to_s.titleize
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
activeadmin-0.4.4 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.4.3 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.4.2 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.4.1 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.4.0 lib/active_admin/views/dashboard_section_renderer.rb
andrewroth_activeadmin-0.3.4.4 lib/active_admin/views/dashboard_section_renderer.rb
andrewroth_activeadmin-0.3.4.3 lib/active_admin/views/dashboard_section_renderer.rb
andrewroth_activeadmin-0.3.4.2 lib/active_admin/views/dashboard_section_renderer.rb
andrewroth_activeadmin-0.3.4.1 lib/active_admin/views/dashboard_section_renderer.rb
andrewroth_activeadmin-0.3.4 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.3.4 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.3.3 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.3.2 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.3.1 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.3.0 lib/active_admin/views/dashboard_section_renderer.rb
nsm-activeadmin-0.2.2 lib/active_admin/views/dashboard_section_renderer.rb
saulolso-activeadmin-0.2.2.1 lib/active_admin/views/dashboard_section_renderer.rb
saulolso-activeadmin-0.2.2 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.2.2 lib/active_admin/views/dashboard_section_renderer.rb
activeadmin-0.2.1 lib/active_admin/views/dashboard_section_renderer.rb