Sha256: 6eb561e44afe204ed5ce51993a5a2f30ce6dba6f6b0fd78a7fb2a1009b86c0dc

Contents?: true

Size: 601 Bytes

Versions: 133

Compression:

Stored size: 601 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

133 entries across 133 versions & 2 rubygems

Version Path
spree_backend-3.1.14 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.13 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.12 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.2.3 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.1.4 app/controllers/spree/admin/prototypes_controller.rb
solidus_backend-1.0.7 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.11 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.10 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.9 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.8 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.7 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.6 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.5 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.4 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.3 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.2 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.0.10 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.1 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.0 app/controllers/spree/admin/prototypes_controller.rb
spree_backend-3.1.0.rc4 app/controllers/spree/admin/prototypes_controller.rb