Sha256: 22696c26fb91c90c44802ce4602cc8b652bb9618608eb5e5cbbd800c768a5d06
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
class OrdersController < ApplicationController # POST, save in session search_filter :index, {save_session: true, search_method: :post_and_redirect, url: :orders_path, search_url: :search_orders_path, search_action: :search} do default_order "id", 'desc' # custom scope field :city, :string, :text, {label: 'City', default_value: '', ignore_value: '', search_by: :id, condition: :custom, condition_scope: :of_client_city} end def index @items = Order.includes(:client).by_filter(@filter) end end
Version data entries
5 entries across 5 versions & 1 rubygems