Sha256: c77c51a97f69db12d08e1545c921b1533d9b770579fc2565e92cc565054aa1e2

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

module Component
  module CollectionTable::BatchActionsConcern
    extend ActiveSupport::Concern

    def batch_actions(options = {}, &block)
      @wrap_in_form = true
      title = @view.render partial: 'component/table/header_cells/batch_actions', locals: { options: options }
      options.reverse_merge!(render_as: :batch_actions, title: title)
      column(:batch_actions, options, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-add_ons-2.2.1 app/concerns/component/collection_table/batch_actions_concern.rb
rails-add_ons-2.2.0 app/concerns/component/collection_table/batch_actions_concern.rb