|
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")
|
|
@artwork_supports = ArtworkSupport.find(:all, :order => "name ASC")
|
|
@tags = Tag.find(:all, :order => "name ASC")
|
|
end
|
|
end
|