Sha256: ef6156643662bc62b66e5ff8651cc975b06915afc9a17d9b967341cb9cfaf37a

Contents?: true

Size: 888 Bytes

Versions: 5

Compression:

Stored size: 888 Bytes

Contents

require 'active_admin/abstract_view_factory'

module ActiveAdmin
  class ViewFactory < AbstractViewFactory

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

    # 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

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
saulolso-activeadmin-0.2.2.1 lib/active_admin/view_factory.rb
saulolso-activeadmin-0.2.2 lib/active_admin/view_factory.rb
activeadmin-0.2.2 lib/active_admin/view_factory.rb
activeadmin-0.2.1 lib/active_admin/view_factory.rb
activeadmin-0.2.0 lib/active_admin/view_factory.rb