Sha256: 70e07147c5456d1b5c8c250252ce0fee2fe346559e1a5210e723ae7afb719fc8

Contents?: true

Size: 486 Bytes

Versions: 5

Compression:

Stored size: 486 Bytes

Contents

class CarTableWithOptionsOldSyntax < DiningTable::Table
  def define
    column :brand, :html => { :td => { class: 'center' }, :th => { class: :center } } do |object|
      object.brand.upcase
    end
    column :stock, :html => { :td_options => { class: 'left' }, :th_options => { class: :left } }  # deprecated options syntax
    column :launch_date if options[:with_normal_launch_date]
    column :launch_date, :class => DateColumn if options[:with_date_column_launch_date]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dining-table-1.1.3 spec/tables/car_table_with_options_old_syntax.rb
dining-table-1.1.2 spec/tables/car_table_with_options_old_syntax.rb
dining-table-1.1.1 spec/tables/car_table_with_options_old_syntax.rb
dining-table-1.1.0 spec/tables/car_table_with_options_old_syntax.rb
dining-table-1.0.0 spec/tables/car_table_with_options_old_syntax.rb