Sha256: d8fc3bc19e2fe33a158912e1e42cb3ad397693a50ce69c9bf3f5040daa3b2547

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

module ActiveAdmin
  module Views
    module Pages
      class Page < Base

        def main_content
          page_presenter = active_admin_config.get_page_presenter(:index)

          if page_presenter && page_presenter.block
            instance_exec &page_presenter.block
          else
            nil
          end
        end

        protected

        def title
          active_admin_config.name
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
activeadmin-0.4.4 lib/active_admin/views/pages/page.rb
activeadmin-0.4.3 lib/active_admin/views/pages/page.rb
activeadmin-0.4.2 lib/active_admin/views/pages/page.rb
activeadmin-0.4.1 lib/active_admin/views/pages/page.rb
activeadmin-0.4.0 lib/active_admin/views/pages/page.rb
andrewroth_activeadmin-0.3.4.4 lib/active_admin/views/pages/page.rb
andrewroth_activeadmin-0.3.4.3 lib/active_admin/views/pages/page.rb
andrewroth_activeadmin-0.3.4.2 lib/active_admin/views/pages/page.rb
andrewroth_activeadmin-0.3.4.1 lib/active_admin/views/pages/page.rb