Sha256: 7750a7b39209ba88a14f3ba055ff886e2c49117b7d3d2f69302657bde5455987
Contents?: true
Size: 601 Bytes
Versions: 133
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true module Spree module Admin class PropertiesController < ResourceController def index respond_with(@collection) end private def collection return @collection if @collection # 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]) @collection end end end end
Version data entries
133 entries across 133 versions & 2 rubygems