lib/generators/dry_crud/templates/app/helpers/standard_table_builder.rb
# Same as :attrs, except that it renders a sort link in the header
# if an attr is sortable.
Same as :attrs, except that it renders a sort link in the header
if an attr is sortable.
Same as : attrs except that it renders a sort link in the header if an attr is sortable .
def sortable_attrs(*attrs)
      attrs.each do |a|
        template.sortable?(a) ? sortable_attr(a) : attr(a)
      end
    end
def sortable_attrs ( * attrs ) attrs . each do | a | template . sortable? ( a ) ? sortable_attr ( a ) : attr ( a ) end end
Same as :attrs, except that it renders a sort link in the header
if an attr is sortable.
Same as : attrs except that it renders a sort link in the header if an attr is sortable .
attrs