app/controllers/admin/uploads_controller.rb in spree_essentials-0.1.0 vs app/controllers/admin/uploads_controller.rb in spree_essentials-0.1.1

- old
+ new

@@ -4,9 +4,13 @@ render :template => request.xhr? ? 'admin/uploads/picker' : 'admin/uploads/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 = Upload.metasearch(params[:search]) @collection = @search.paginate(:per_page => Spree::Config[:orders_per_page], :page => params[:page]) \ No newline at end of file