Sha256: 501a75347b759b02c4b4b77d7b8af6160ec375b4ebd05b61c0251b3c5127d27a
Contents?: true
Size: 691 Bytes
Versions: 12
Compression:
Stored size: 691 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 def page_action(name, options = {}, &block) config.page_actions << ControllerAction.new(name, options) controller do define_method(name, &block || Proc.new{}) end end end end
Version data entries
12 entries across 12 versions & 3 rubygems