Sha256: 6790900b20baebc84e0d0c4330e7e50a98ab5ad24a62ed48e678c88f0245d3ae

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 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::New,
              :edit_page          => ActiveAdmin::Views::Pages::Edit,
              :layout             => ActiveAdmin::Views::Pages::Layout

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
andrewroth_activeadmin-0.3.4 lib/active_admin/view_factory.rb
activeadmin-0.3.4 lib/active_admin/view_factory.rb
activeadmin-0.3.3 lib/active_admin/view_factory.rb
activeadmin-0.3.2 lib/active_admin/view_factory.rb
activeadmin-0.3.1 lib/active_admin/view_factory.rb
activeadmin-0.3.0 lib/active_admin/view_factory.rb