Class: Admin::PrototypesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/prototypes_controller.rb

Instance Method Summary collapse

Instance Method Details

#availableObject



7
8
9
10
11
12
# File 'app/controllers/admin/prototypes_controller.rb', line 7

def available
  @prototypes = Prototype.all
  respond_to do |wants|
    wants.html { render :layout => !request.xhr? }
  end
end

#selectObject



14
15
16
17
# File 'app/controllers/admin/prototypes_controller.rb', line 14

def select
  load_object
  @prototype_properties = @prototype.properties
end