app/controllers/spree/admin/taxons_controller.rb in spree_backend-3.1.14 vs app/controllers/spree/admin/taxons_controller.rb in spree_backend-3.2.0.rc1
- old
+ new
@@ -2,21 +2,12 @@
module Admin
class TaxonsController < Spree::Admin::BaseController
before_action :load_taxonomy, only: [:create, :edit, :update]
before_action :load_taxon, only: [:edit, :update]
- respond_to :html, :json, :js
+ respond_to :html, :js
def index
-
- end
-
- def search
- if params[:ids]
- @taxons = Spree::Taxon.where(id: params[:ids].split(','))
- else
- @taxons = Spree::Taxon.limit(20).ransack(name_cont: params[:q]).result
- end
end
def create
@taxon = @taxonomy.taxons.build(params[:taxon])
if @taxon.save