Sha256: 0dd49699c3548874c8377b8a1c6b26f6ca9ccc739851983bd2eaa5ac1de862e6

Contents?: true

Size: 321 Bytes

Versions: 12

Compression:

Stored size: 321 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_s(:db) if status.created_at
  end
end -%>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-6.1.2 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-6.1.1 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-6.1.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-7.0.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-6.1.2 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-6.1.1 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-6.1.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-5.0.2 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-5.0.1 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
pwice_grid-5.0.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb
wice_grid-4.1.0 spec/support/test_app/app/views/custom_ordering_with_ruby/_grid.html.erb