Sha256: bc2e136fad95ee8b09a6efebed8a4deb3e274a2aa808711252b7e4470b66255e

Contents?: true

Size: 391 Bytes

Versions: 17

Compression:

Stored size: 391 Bytes

Contents

# encoding: utf-8
class NegationController < ApplicationController
  def index
    @tasks_grid = initialize_grid(Task,
      include: [:priority, :status, :project],
      order: 'statuses.name',
      custom_order: {
        'tasks.priority_id' => 'priorities.name',
        'tasks.status_id'   => 'statuses.position',
        'tasks.project_id'  => 'projects.name'
      }
    )
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
wice_grid-7.1.4 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-7.1.3 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-7.1.2 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-7.1.1 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-7.1.0 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-6.1.3 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-6.1.2 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-6.1.1 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-6.1.0 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-7.0.0 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-6.1.2 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-6.1.1 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-6.1.0 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-5.0.2 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-5.0.1 spec/support/test_app/app/controllers/negation_controller.rb
pwice_grid-5.0.0 spec/support/test_app/app/controllers/negation_controller.rb
wice_grid-4.1.0 spec/support/test_app/app/controllers/negation_controller.rb