Sha256: fa6dbf1f69e492957f28b711721872b90b5381b8e3aa73a57182daf395be9946
Contents?: true
Size: 558 Bytes
Versions: 20
Compression:
Stored size: 558 Bytes
Contents
module Spree module Admin class PropertiesController < ResourceController def index respond_with(@collection) end private def collection return @collection if @collection.present? # params[:q] can be blank upon pagination params[:q] = {} if params[:q].blank? @collection = super @search = @collection.ransack(params[:q]) @collection = @search.result. page(params[:page]). per(Spree::Config[:properties_per_page]) end end end end
Version data entries
20 entries across 20 versions & 2 rubygems