Class: ActiveadminAncestryView::IndexActionBuilder

Inherits:
ActionBuilder
  • Object
show all
Defined in:
lib/activeadmin_ancestry_view/action_builder/index_action_builder.rb

Constant Summary

Constants inherited from ActionBuilder

ActionBuilder::DEFAULT_OPTIONS

Instance Method Summary collapse

Instance Method Details

#call(opt = {}, &block) ⇒ Object



3
4
5
6
7
8
# File 'lib/activeadmin_ancestry_view/action_builder/index_action_builder.rb', line 3

def call(opt = {}, &block)
  %{index as: :block do |res| 
      #{block.call if block_given?}
      #{render_partial(opt)}
    end}
end