Sha256: d0c1aad86a9efb4c3ee53468ad22194d78fb20379f921bb7321e78125ed95ed9

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

<%= grid(grid, show_filters: :always) do |g|
  g.column name: 'ID', attribute: 'id', filter: false
  g.column name: 'Status Name', attribute: 'name', sort_by: ->(status) { [status.number_of_vowels, status] }
  g.column  name: 'Created' do |status|
    status.created_at.to_fs(:db) if status.created_at
  end
end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wice_grid-7.1.4 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-7.1.3 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-7.1.2 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-7.1.1 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-7.1.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb