Class: IndexFor::BodyColumnBuilder
- Defined in:
- lib/index_for/builders/body_column_builder.rb
Instance Attribute Summary
Attributes inherited from Builder
#html_options, #object, #template
Instance Method Summary collapse
Methods inherited from Builder
#association, #attributes, #fields_for, #initialize
Constructor Details
This class inherits a constructor from IndexFor::Builder
Instance Method Details
#actions(*action_names, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/index_for/builders/body_column_builder.rb', line 11 def actions *action_names, &block = action_names. [:html] = :table_actions_cell, [:namespace] = @html_options[:namespace] content = @template.index_for_actions @object, *action_names, , &block wrap_with :table_body_cell, content, end |
#attribute(attribute_name, options = {}, &block) ⇒ Object
6 7 8 9 |
# File 'lib/index_for/builders/body_column_builder.rb', line 6 def attribute attribute_name, = {}, &block append_html_class , attribute_class_name(attribute_name) wrap_attribute_with :table_body_cell, attribute_name, , &block end |