Sha256: a011cf32f7291b58e2620e2025a6ca767449bb46c6b1adaeec7c4c5ffec75100
Contents?: true
Size: 590 Bytes
Versions: 16
Compression:
Stored size: 590 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::Backend::Config[:admin_properties_per_page]) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems