Sha256: 8e3c457e58dadac1d6c58968740e6582dc85661f32449269299ba390e6f60277
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
class Spree::Admin::UploadsController < Spree::Admin::ResourceController def index render :template => "spree/admin/uploads/#{request.xhr? ? 'picker' : 'index'}", :layout => !request.xhr? end private def collection params[:q] ||= {} params[:q][:sort] ||= "created_at.desc" @search = Spree::Upload.search(params[:q]) @collection = @search.result.page(params[:page]).per(Spree::Config[:orders_per_page]) end end
Version data entries
4 entries across 4 versions & 2 rubygems