Sha256: 554c545f9a41b049a5bf3a4e1642f8be76f6e21f8788897d3f93dbe11b94958e

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

require 'active_admin/abstract_view_factory'

module ActiveAdmin
  class ViewFactory < AbstractViewFactory

    # Register Helper Renderers
    register  :global_navigation  => ActiveAdmin::Views::TabbedNavigation,
              :action_items       => ActiveAdmin::Views::ActionItems,
              :header             => ActiveAdmin::Views::HeaderRenderer,
              :dashboard_section  => ActiveAdmin::Views::DashboardSection,
              :index_scopes       => ActiveAdmin::Views::Scopes,
              :blank_slate        => ActiveAdmin::Views::BlankSlate

    # Register All The Pages
    register  :dashboard_page     => ActiveAdmin::Views::Pages::Dashboard,
              :index_page         => ActiveAdmin::Views::Pages::Index,
              :show_page          => ActiveAdmin::Views::Pages::Show,
              :new_page           => ActiveAdmin::Views::Pages::Form,
              :edit_page          => ActiveAdmin::Views::Pages::Form,
              :layout             => ActiveAdmin::Views::Pages::Layout,
              :page               => ActiveAdmin::Views::Pages::Page

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

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