Sha256: 930bddd1aee3b5271a87dce36124de59f5065537f3f6c78f24efe45be5fbe180
Contents?: true
Size: 581 Bytes
Versions: 76
Compression:
Stored size: 581 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[:admin_properties_per_page]) end end end end
Version data entries
76 entries across 76 versions & 1 rubygems