From e84e82032813b7acd71f8073d00f57e1cd65eb7c Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 23 Jan 2013 17:36:33 +0100 Subject: Fixed I18n bug. --- app/views/phones/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/phones/show.html.haml') diff --git a/app/views/phones/show.html.haml b/app/views/phones/show.html.haml index 97cb1a8..b34bdcd 100644 --- a/app/views/phones/show.html.haml +++ b/app/views/phones/show.html.haml @@ -73,7 +73,7 @@ .row .span12 %h2= t("phones.sip_accounts.title") - - if @phone.phone_sip_accounts.count > 0 + - if @phone.phone_sip_accounts.any? = render "phone_sip_accounts/index_core", :phone_sip_accounts => @phone.phone_sip_accounts = render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => PhoneSipAccount} -- cgit v1.2.3