class ActionBlocks::TableColumnBuilder

Public Instance Methods

before_build(parent, *args) click to toggle source
# File lib/action_blocks/builders/table_builder.rb, line 246
def before_build(parent, *args)
  @id = args[0]
  pm = parent.model_key.dup
  pm['model-'] = ''
  @field_key = "field-#{pm}-#{@id}"
end
hashify() click to toggle source
# File lib/action_blocks/builders/table_builder.rb, line 253
def hashify
  {
    field_key: @field_key
  }
end