lib/generators/dry_crud/templates/app/helpers/standard_table_builder.rb
def align_class(attr)
    entry = entries.first
    case column_type(entry, attr)
      when :integer, :float, :decimal
        'right' unless association(entry, attr, :belongs_to)
      when :boolean
        'center'
    end
  end
# Returns css classes used for alignment of the cell data.
# Based on the column type of the attribute.
Returns css classes used for alignment of the cell data.
Based on the column type of the attribute.
Returns css classes used for alignment of the cell data . Based on the column type of the attribute .
def align_class(attr)
    entry = entries.first
    case column_type(entry, attr)
      when :integer, :float, :decimal
        'right' unless association(entry, attr, :belongs_to)
      when :boolean
        'center'
    end
  end
def align_class ( attr ) entry = entries . first case column_type ( entry , attr ) when :integer , :float , :decimal 'right' unless association ( entry , attr , :belongs_to ) when :boolean 'center' end end
Returns css classes used for alignment of the cell data.
Returns css classes used for alignment of the cell data .
attr