Module: TableCloth::Extensions::Actions::ClassMethods

Defined in:
lib/table_cloth/extensions/actions.rb

Instance Method Summary collapse

Instance Method Details

#actions(options = {}, &block) ⇒ Object



11
12
13
14
15
# File 'lib/table_cloth/extensions/actions.rb', line 11

def actions(options={}, &block)
  action_collection.instance_eval(&block)

  column :actions, options.update(collection: action_collection, using: Column)
end