Sha256: 80b72fd696d0151f121a63e228f0bdb4140d6127656913fd9e78cd5f9a38d35d

Contents?: true

Size: 594 Bytes

Versions: 107

Compression:

Stored size: 594 Bytes

Contents

module Spree
  module Admin
    class PrototypesController < ResourceController
      def show
        if request.xhr?
          render layout: false
        else
          redirect_to admin_prototypes_path
        end
      end

      def available
        @prototypes = Prototype.order('name asc')
        respond_with(@prototypes) do |format|
          format.html { render layout: !request.xhr? }
          format.js
        end
      end

      def select
        @prototype ||= Prototype.find(params[:id])
        @prototype_properties = @prototype.properties
      end
    end
  end
end

Version data entries

107 entries across 107 versions & 3 rubygems

Version Path
spree_backend-3.5.0.rc1 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.5 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.4 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.3 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-2.0.3 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.4.2 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.3.2 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.2 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.1 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.0 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.0.rc2 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.4.0.rc1 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-2.0.2 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.4.1 app/controllers/spree/admin/prototypes_controller.rb
solidus_prototypes-1.0.0 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-2.0.1 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-2.0.0 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.4.0 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-2.0.0.rc1 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.4.0.rc1 app/controllers/spree/admin/prototypes_controller.rb