Sha256: c8afbb865abe6533fb7004befaf08616248abb5d81fb582dd54b96438f5f6ccb
Contents?: true
Size: 324 Bytes
Versions: 17
Compression:
Stored size: 324 Bytes
Contents
# encoding: utf-8 class CustomOrderingWithProcController < ApplicationController def index @status_grid = initialize_grid(Status, order: 'statuses.name', custom_order: { 'statuses.name' => ->(column_name) { params[:sort_by_length] ? "length(#{column_name})" : column_name } } ) end end
Version data entries
17 entries across 17 versions & 2 rubygems