Sha256: 7a20f32a7a8f190f2412fe3b4c291100865146ffdd868e8068bd58e66ffd251f

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

module ActiveAdmin
  # This is the class where all the register_page blocks are instance eval'd
  class PageDSL < DSL

    # Page content.
    #
    # The block should define the view using Arbre.
    #
    # Example:
    #
    #   ActiveAdmin.register "My Page" do
    #     content do
    #       para "Sweet!"
    #     end
    #   end
    #
    def content(options = {}, &block)
      config.set_page_presenter :index, ActiveAdmin::PagePresenter.new(options, &block)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
activeadmin-0.4.0 lib/active_admin/page_dsl.rb
andrewroth_activeadmin-0.3.4.4 lib/active_admin/page_dsl.rb
andrewroth_activeadmin-0.3.4.3 lib/active_admin/page_dsl.rb
andrewroth_activeadmin-0.3.4.2 lib/active_admin/page_dsl.rb
andrewroth_activeadmin-0.3.4.1 lib/active_admin/page_dsl.rb