Sha256: e6f7dbf2bcab942ecf0455f6ca899b5c6b1510c5ad4c77397d91c54fc1ace909

Contents?: true

Size: 402 Bytes

Versions: 12

Compression:

Stored size: 402 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_s(: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

12 entries across 12 versions & 2 rubygems

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