class IndexFor::HeadColumnBuilder

Public Instance Methods

actions(*action_names) click to toggle source
# File lib/index_for/builders/head_column_builder.rb, line 11
def actions *action_names
  options = action_names.extract_options!
  options[:html] = apply_html_options :table_actions_cell, options

  wrap_with :table_head_cell, translate(:"actions.actions"), options
end
attribute(attribute_name, options = {}) click to toggle source
# File lib/index_for/builders/head_column_builder.rb, line 6
def attribute attribute_name, options = {}
  append_html_class options, attribute_class_name(attribute_name)
  wrap_with :table_head_cell, attribute_label(attribute_name, options), options
end