Output an order cycle in JSON

This commit is contained in:
Rohan Mitchell
2012-11-30 15:42:17 +11:00
parent 6e4638b12d
commit ba3a595af2
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,13 @@ module Admin
class OrderCyclesController < ResourceController
before_filter :load_order_cycle_set, :only => :index
def show
respond_to do |format|
format.html
format.json
end
end
def new
respond_to do |format|
format.html

View File

@@ -4,4 +4,8 @@ r.element :order_cycle, @order_cycle do
r.element :orders_open_at
r.element :orders_close_at
r.element :coordinator_id
r.list_of :exchanges do
r.element :sender_id
r.element :receiver_id
end
end