Sha256: a545b00149118b56d4e23fec43c68daf00866c424daa48b5d84474489b79799e
Contents?: true
Size: 712 Bytes
Versions: 9
Compression:
Stored size: 712 Bytes
Contents
module ActiveAdmin module Views # = Index as a Block # # If you want to fully customize the display of your resources on the index # screen, Index as a Block allows you to render a block of content for each # resource. # # index :as => :block do |product| # div :for => product do # h2 auto_link(product.title) # div do # simple_format product.description # end # end # end # class IndexAsBlock < ActiveAdmin::Component def build(page_presenter, collection) collection.each do |obj| instance_exec(obj, &page_presenter.block) end end end end end
Version data entries
9 entries across 9 versions & 2 rubygems