Sha256: 9cc3866acb83d7927b8bc46fb0c215b58c3500fa65e31a4513d99d601ee8369b

Contents?: true

Size: 483 Bytes

Versions: 37

Compression:

Stored size: 483 Bytes

Contents

module Spree
  module Admin
    class TaxonomiesController < ResourceController
      respond_to :json, :only => [:get_children]

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

        respond_with(@taxons)
      end

      private

      def location_after_save
        if @taxonomy.created_at == @taxonomy.updated_at
          edit_admin_taxonomy_url(@taxonomy)
        else
          admin_taxonomies_url
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.4 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.3 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.5 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.1.6 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.1.5 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.4 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.2 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.0.7 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.3 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.1 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.0 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.0.rc2 app/controllers/spree/admin/taxonomies_controller.rb
dup_spree_core-1.3.0.rc1 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.3.0.rc1 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.2 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.1.4 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.0 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.0.rc2 app/controllers/spree/admin/taxonomies_controller.rb
spree_core-1.2.0.rc1 app/controllers/spree/admin/taxonomies_controller.rb