From 631bc631fb75fa37e2082e1184d07af5f806c141 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 16 Oct 2013 10:39:32 +1100 Subject: [PATCH] Do not show order cycle debug info in production --- app/views/admin/order_cycles/_form.html.haml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/views/admin/order_cycles/_form.html.haml b/app/views/admin/order_cycles/_form.html.haml index 431e142b3c..75bc560486 100644 --- a/app/views/admin/order_cycles/_form.html.haml +++ b/app/views/admin/order_cycles/_form.html.haml @@ -59,13 +59,14 @@ = link_to 'Cancel', main_app.admin_order_cycles_path -#order-cycles-debug - %h2 Debug information +- unless Rails.env.production? + #order-cycles-debug + %h2 Debug information - %pre order_cycle = {{ order_cycle | json }} - %hr/ - %pre enterprises = {{ enterprises | json }} - %hr/ - %pre enterprise_fees = {{ enterprise_fees | json }} - %hr/ - %pre supplied_products = {{ supplied_products | json }} + %pre order_cycle = {{ order_cycle | json }} + %hr/ + %pre enterprises = {{ enterprises | json }} + %hr/ + %pre enterprise_fees = {{ enterprise_fees | json }} + %hr/ + %pre supplied_products = {{ supplied_products | json }}