Sha256: 4ec596dd2aee97873e2c6e33bbe98fb432a59d99fd8c9ea606ec3a6d666eb231

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

<%= grid(grid, show_filters: :always) do |g|
  g.column name: 'ID', attribute: 'id', filter: false
  g.column name: 'Status Name', attribute: 'name'
  g.column name: 'Created' do |status|
    status.created_at.to_fs(:db) if status.created_at
  end
  g.column name: 'Task Count', attribute: 'task_count', sort_by: ->(status) { status.tasks.count } do |status|
    status.tasks.count
  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_on_calculated/_grid.html.erb
wice_grid-7.1.3 spec/support/test_app/app/views/custom_ordering_on_calculated/_grid.html.erb
wice_grid-7.1.2 spec/support/test_app/app/views/custom_ordering_on_calculated/_grid.html.erb
wice_grid-7.1.1 spec/support/test_app/app/views/custom_ordering_on_calculated/_grid.html.erb
wice_grid-7.1.0 spec/support/test_app/app/views/custom_ordering_on_calculated/_grid.html.erb