Project

General

Profile

Download (576 Bytes) Statistics
| Branch: | Tag: | Revision:

root / app / controllers / admin / artworks_controller.rb @ 70e65017

1 b689e231 Marc Dequènes (Duck)
class Admin::ArtworksController < Admin::AdminController
2
  simple_rest_support
3
4
  before_filter :load_form_data, :only => [:new, :create, :edit, :update]
5
6
  private
7
8
  def load_form_data
9
    @artwork_sets = ArtworkSet.find(:all, :order => "name ASC")
10
    @artwork_materials = ArtworkMaterial.find(:all, :order => "name ASC")
11
    @artwork_conditions = ArtworkCondition.find(:all, :order => "position ASC")
12
    @artwork_placement_reasons = ArtworkPlacementReason.find(:all, :order => "name ASC")
13 70e65017 Marc Dequènes (Duck)
    @artwork_supports = ArtworkSupport.find(:all, :order => "name ASC")
14 b689e231 Marc Dequènes (Duck)
  end
15
end