Sha256: eb72c5acdc8046c09a81fdbf8bb61c08c6676287c640399b11809b754af6dc83
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
module Component module CollectionTable::BatchActionsConcern extend ActiveSupport::Concern # Example: # # = table.batch_actions(actions: { destroy: url_for(action: :destroy_many) }) # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-add_ons-3.0.0.pre1 | app/concerns/component/collection_table/batch_actions_concern.rb |