From 36373d12e3f37e3a2bc4bd6ea9b3f8b340a84818 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Mon, 11 May 2015 11:00:25 +0300 Subject: [PATCH] syntax fix --- app/views/layouts/registrar/application.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/registrar/application.haml b/app/views/layouts/registrar/application.haml index f9e5c830c..8b92a5b6d 100644 --- a/app/views/layouts/registrar/application.haml +++ b/app/views/layouts/registrar/application.haml @@ -44,7 +44,7 @@ - active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil %li{class: active_class}= link_to t(:billing), registrar_invoices_path - - if !Rails.env.production? && can? :view, :registrar_xml_console + - if !Rails.env.production? && can?(:view, :registrar_xml_console) - active_class = ['registrar/xml_consoles'].include?(params[:controller]) ? 'active' :nil %li{class: active_class}= link_to t(:xml_console), registrar_xml_console_path