Sha256: bdec2304385a06620371c994cf4a5223fe0e1e935cf394c9748bc772eb8f3a23

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

require 'active_admin/abstract_view_factory'

module ActiveAdmin
  class ViewFactory < AbstractViewFactory

    # Register Helper Renderers
    register  :global_navigation    => ActiveAdmin::Views::TabbedNavigation,
              :site_title           => ActiveAdmin::Views::SiteTitle,
              :utility_navigation   => ActiveAdmin::Views::UtilityNav,
              :action_items         => ActiveAdmin::Views::ActionItems,
              :title_bar            => ActiveAdmin::Views::TitleBar,
              :header               => ActiveAdmin::Views::Header,
              :footer               => ActiveAdmin::Views::Footer,
              :dashboard_section    => ActiveAdmin::Views::DashboardSection,
              :index_scopes         => ActiveAdmin::Views::Scopes,
              :blank_slate          => ActiveAdmin::Views::BlankSlate,
              :action_list_popover  => ActiveAdmin::Views::ActionListPopover

    # 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

4 entries across 4 versions & 1 rubygems

Version Path
activeadmin-0.5.1 lib/active_admin/view_factory.rb
activeadmin-0.5.0 lib/active_admin/view_factory.rb
activeadmin-0.5.0.pre1 lib/active_admin/view_factory.rb
activeadmin-0.5.0.pre lib/active_admin/view_factory.rb