Class: Atrium::OrderController
Instance Method Summary
collapse
#atrium_config
#facet_element, #get_parent_path, #get_showcase_parent_edit_path, #get_showcase_parent_show_path, #render_showcase_facet_selection
#application_name
#get_saved_items, #get_saved_search, #saved_searches_for_select
Instance Method Details
#collection_showcase_index ⇒ Object
18
19
20
21
22
|
# File 'app/controllers/atrium/order_controller.rb', line 18
def collection_showcase_index
respond_to do |format|
format.json { render json: collection.showcase_order }
end
end
|
#exhibit_facet_index ⇒ Object
11
12
13
14
15
|
# File 'app/controllers/atrium/order_controller.rb', line 11
def exhibit_facet_index
respond_to do |format|
format.json { render json: exhibit.facet_order }
end
end
|
#exhibit_index ⇒ Object
5
6
7
8
9
|
# File 'app/controllers/atrium/order_controller.rb', line 5
def exhibit_index
respond_to do |format|
format.json { render json: collection.exhibit_order }
end
end
|
#exhibit_showcase_index ⇒ Object
25
26
27
28
29
|
# File 'app/controllers/atrium/order_controller.rb', line 25
def exhibit_showcase_index
respond_to do |format|
format.json { render json: exhibit.showcase_order }
end
end
|
#update_collection_exhibits_order ⇒ Object
NOTE this action is not currently protected from unauthorized use.
33
34
35
36
37
38
39
|
# File 'app/controllers/atrium/order_controller.rb', line 33
def update_collection_exhibits_order
collection.exhibit_order= params[:collection]
respond_to do |format|
format.json { render json: collection.exhibit_order }
end
end
|
#update_collection_showcases_order ⇒ Object
57
58
59
60
61
62
63
|
# File 'app/controllers/atrium/order_controller.rb', line 57
def update_collection_showcases_order
collection.showcase_order = params[:collection]
respond_to do |format|
format.json { render json: collection.showcase_order }
end
end
|
#update_exhibit_facets_order ⇒ Object
41
42
43
44
45
46
47
|
# File 'app/controllers/atrium/order_controller.rb', line 41
def update_exhibit_facets_order
exhibit.facet_order = params[:collection]
respond_to do |format|
format.json { render json: exhibit.facet_order }
end
end
|
#update_exhibit_showcases_order ⇒ Object
49
50
51
52
53
54
55
|
# File 'app/controllers/atrium/order_controller.rb', line 49
def update_exhibit_showcases_order
exhibit.showcase_order = params[:collection]
respond_to do |format|
format.json { render json: exhibit.showcase_order }
end
end
|