Sha256: 8c7471c46424629844dbae2baf40518c279eee5746132d6c5a175272989c6678

Contents?: true

Size: 625 Bytes

Versions: 132

Compression:

Stored size: 625 Bytes

Contents

module ActiveAdmin
  module Views
    module Pages
      class Page < Base

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

        protected

        def page_presenter
          active_admin_config.get_page_presenter(:index) || ActiveAdmin::PagePresenter.new
        end

        def title
          if page_presenter[:title]
            render_or_call_method_or_proc_on self, page_presenter[:title]
          else
            active_admin_config.name
          end
        end
      end
    end
  end
end

Version data entries

132 entries across 132 versions & 10 rubygems

Version Path
activeadmin-rb-1.6.0 lib/active_admin/views/pages/page.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/views/pages/page.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/views/pages/page.rb
activeadmin-rb-1.5.2 lib/active_admin/views/pages/page.rb
activeadmin-2.9.0 lib/active_admin/views/pages/page.rb
activeadmin-2.8.1 lib/active_admin/views/pages/page.rb
activeadmin-2.8.0 lib/active_admin/views/pages/page.rb
activeadmin-rb-1.5.1 lib/active_admin/views/pages/page.rb
activeadmin-2.7.0 lib/active_admin/views/pages/page.rb
activeadmin-2.6.1 lib/active_admin/views/pages/page.rb
activeadmin-2.6.0 lib/active_admin/views/pages/page.rb
activeadmin-2.5.0 lib/active_admin/views/pages/page.rb
activeadmin-2.4.0 lib/active_admin/views/pages/page.rb
activeadmin-2.3.1 lib/active_admin/views/pages/page.rb
activeadmin-2.3.0 lib/active_admin/views/pages/page.rb
activeadmin-2.2.0 lib/active_admin/views/pages/page.rb
activeadmin-2.1.0 lib/active_admin/views/pages/page.rb
activeadmin-2.0.0 lib/active_admin/views/pages/page.rb
activeadmin-rb-1.5.0 lib/active_admin/views/pages/page.rb
activeadmin-2.0.0.rc2 lib/active_admin/views/pages/page.rb