10 lines
239 B
Ruby
10 lines
239 B
Ruby
class Api::SyncController < Api::ApiController
|
|
|
|
def sync_data
|
|
# Here comes to save the sync records.
|
|
Order.sync_order_records(params[:orders])
|
|
OrderItem.sync_order_item_records(params[:order_items])
|
|
|
|
return true
|
|
end
|
|
end |