Project

General

Profile

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

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

1 b689e231 Marc Dequènes (Duck)
class Admin::ArtworkGroupsController < Admin::AdminController
2
  simple_rest_support ArtworkSet
3
4
  def select_for_artwork_set
5
    vars = {:form_object => params[:form_object], :form_field => params[:form_field], :artwork_set_id => params[:artwork_set_id]}
6
    if params[:artwork_set_id] == params[:initial_artwork_set_id]
7
      vars[:selected] = params[:initial_artwork_group_id].to_i
8
    end
9
    render :partial => action_name, :locals => vars
10
  end
11
end