Sha256: 09e9b2a3ec3426ef89757984cf52afd272eeadc4295e38652ea06fcafe5b1365

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

require 'active_admin/abstract_view_factory'

module ActiveAdmin
  class ViewFactory < AbstractViewFactory

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

    # Register All The Pages
    register  :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

5 entries across 5 versions & 1 rubygems

Version Path
yousty-activeadmin-1.0.4.pre lib/active_admin/view_factory.rb
yousty-activeadmin-1.0.3.pre lib/active_admin/view_factory.rb
yousty-activeadmin-1.0.2.pre lib/active_admin/view_factory.rb
yousty-activeadmin-1.0.1.pre lib/active_admin/view_factory.rb
yousty-activeadmin-1.0.0.pre lib/active_admin/view_factory.rb