Sha256: 7c36e5a5eb29f7d8cf39458221b9de9c11ce5999784a573de4d65d114d9862b5
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 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 translated_object_name I18n.t("upload.model_name") end def collection params[:search] ||= {} params[:search][:meta_sort] ||= "created_at.desc" @search = Spree::Upload.metasearch(params[:search]) @collection = @search.page(params[:page]).per(Spree::Config[:orders_per_page]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essentials-0.4.0.rc2 | app/controllers/spree/admin/uploads_controller.rb |
spree_essentials-0.4.0.rc1 | app/controllers/spree/admin/uploads_controller.rb |