root/app/controllers/admin/artworks_controller.rb @ d3d4a9b0
b689e231 | Marc Dequènes (Duck) | class Admin::ArtworksController < Admin::AdminController
|
|
simple_rest_support
|
|||
before_filter :load_form_data, :only => [:new, :create, :edit, :update]
|
|||
private
|
|||
def load_form_data
|
|||
@artwork_sets = ArtworkSet.find(:all, :order => "name ASC")
|
|||
@artwork_materials = ArtworkMaterial.find(:all, :order => "name ASC")
|
|||
@artwork_conditions = ArtworkCondition.find(:all, :order => "position ASC")
|
|||
@artwork_placement_reasons = ArtworkPlacementReason.find(:all, :order => "name ASC")
|
|||
@techniques = Technique.find(:all, :order => "name ASC")
|
|||
end
|
|||
end
|