Class: Spree::Admin::TaxonomiesController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/taxonomies_controller.rb

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, create, #create, destroy, #destroy, #edit, #new, new_action, #update, update, #update_positions

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#get_childrenObject



6
7
8
9
10
# File 'app/controllers/spree/admin/taxonomies_controller.rb', line 6

def get_children
  @taxons = Taxon.find(params[:parent_id]).children

  respond_with(@taxons)
end