Class: CowProxy::ActiveScaffold::DataStructures::ActionColumns

Inherits:
Object
  • Object
show all
Defined in:
lib/active_scaffold/extensions/cow_proxy.rb

Instance Method Summary collapse

Instance Method Details

#each_column(options = {}) ⇒ Object


38
39
40
41
42
43
44
45
46
# File 'lib/active_scaffold/extensions/cow_proxy.rb', line 38

def each_column(options = {})
  __getobj__.each_column(options.reverse_merge(core_columns: action.core.columns)) do |column|
    if column.is_a?(::ActiveScaffold::DataStructures::ActionColumns)
      yield ::CowProxy.wrap(column).tap { |group| group.action = action }
    else
      yield column
    end
  end
end