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.2.0 lib/active_admin/views/dashboard_section_renderer.rb