Method: TableHelp::AttributesTableFor#row
- Defined in:
- lib/table_help/attributes_table_for.rb
#row(name = nil, method_name = nil, &block) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/table_help/attributes_table_for.rb', line 13 def row(name = nil, method_name = nil, &block) rows << [ Formatter.format_attribute_name(name, resource), Strategy.new(name, block_given? ? block : method_name), ] end |