Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format.json {
- render reservation_delivery_response
- }
- format.xml {
- render reservation_delivery_response
- }
- private
- def reservation_delivery_response
- if @reservations = CrsReservation.reservation_delivery(params)
- out = {:json=>@reservations}
- else
- out = {:text=>'You are not permitted to view this location.'}
- end
- end
Add Comment
Please, Sign In to add comment