Sha256: 1a4875db310a68f312cd98ad0cae73cf3b3104f232a4d1544636c4b7c9c805a6
Contents?: true
Size: 421 Bytes
Versions: 17
Compression:
Stored size: 421 Bytes
Contents
# encoding: utf-8 class CustomOrderingController < ApplicationController def index @status_grid1 = initialize_grid(Status, order: 'statuses.name', custom_order: { 'statuses.name' => 'length( ? )' } ) @status_grid2 = initialize_grid(Status, name: 'g2', order: 'statuses.name', custom_order: { 'statuses.name' => 'statuses.position' } ) end end
Version data entries
17 entries across 17 versions & 2 rubygems