Module: Netzke::Communitypack::ActionColumn

Extended by:
ActiveSupport::Concern
Defined in:
lib/netzke/communitypack/action_column.rb

Instance Method Summary collapse

Instance Method Details

#augment_column_config(c) ⇒ Object

This can be optimized in order to generate less json in the column getter



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/netzke/communitypack/action_column.rb', line 13

def augment_column_config(c)
  if c[:type] == :action
    c.xtype = :netzkeactioncolumn

    c[:getter] = lambda do |r|
      c.actions.map {|a| build_action_config(a)}.netzke_jsonify.to_json
    end
  end

  super
end