Class: Spree::Admin::PrototypesController
Instance Method Summary
collapse
belongs_to, create, #create, destroy, #destroy, #edit, #new, new_action, #update, update
included
Instance Method Details
#available ⇒ Object
8
9
10
11
12
13
14
|
# File 'app/controllers/spree/admin/prototypes_controller.rb', line 8
def available
@prototypes = Prototype.order('name asc')
respond_with(@prototypes) do |format|
format.html { render :layout => !request.xhr? }
format.js
end
end
|
#select ⇒ Object
16
17
18
19
20
21
|
# File 'app/controllers/spree/admin/prototypes_controller.rb', line 16
def select
@prototype ||= Prototype.find(params[:id])
@prototype_properties = @prototype.properties
respond_with(@prototypes)
end
|