Class: TableCloth::Extensions::Actions::Column

Inherits:
Column
  • Object
show all
Defined in:
lib/table_cloth/extensions/actions/column.rb

Instance Attribute Summary

Attributes inherited from Column

#name, #options

Instance Method Summary collapse

Methods inherited from Column

#human_name, #initialize

Constructor Details

This class inherits a constructor from TableCloth::Column

Instance Method Details

#value(object, view, table = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/table_cloth/extensions/actions/column.rb', line 3

def value(object, view, table=nil)
  actions = action_collection.actions.map do |action|
    action.value(object, view)
  end

  view.raw(actions.join(separator))
end