Class: ActiveAdmin::BatchActions::BatchActionSelector
- Inherits:
-
Component
- Object
- Arbre::Component
- Component
- ActiveAdmin::BatchActions::BatchActionSelector
- Defined in:
- lib/active_admin/batch_actions/views/batch_action_selector.rb
Instance Method Summary collapse
-
#build(batch_actions) ⇒ Object
Build a new batch actions selector.
-
#to_s ⇒ Object
We don’t want to wrap the action list (or any other children) in an unnecessary div, so instead we just return the children.
Instance Method Details
#build(batch_actions) ⇒ Object
Build a new batch actions selector
13 14 15 16 |
# File 'lib/active_admin/batch_actions/views/batch_action_selector.rb', line 13 def build(batch_actions) @batch_actions = Array(batch_actions) @drop_down = build_drop_down end |
#to_s ⇒ Object
We don’t want to wrap the action list (or any other children) in an unnecessary div, so instead we just return the children
20 21 22 |
# File 'lib/active_admin/batch_actions/views/batch_action_selector.rb', line 20 def to_s children.to_s end |