Permalink
Browse files

Killed some lines.

  • Loading branch information...
1 parent 9041b25 commit 6417e1af6c445ec3933b1c5255eedaa413d18c53 @gunn committed Oct 2, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 app/helpers/rails_admin/application_helper.rb
View
12 app/helpers/rails_admin/application_helper.rb
@@ -55,11 +55,7 @@ def main_navigation
}
end.join
- if li_stack.present?
- li_stack = %{<li class='nav-header'>#{navigation_label || t('admin.misc.navigation')}</li>} + li_stack
- end
-
- li_stack
+ %{<li class='nav-header'>#{navigation_label || t('admin.misc.navigation')}</li>#{li_stack.presence}}
end.join.html_safe
end
@@ -68,11 +64,7 @@ def static_navigation
content_tag(:li, link_to(title.to_s, url, :target => '_blank'))
end.join
- if li_stack.present?
- li_stack = %{<li class='nav-header'>#{RailsAdmin::Config.navigation_static_label || t('admin.misc.navigation_static_label')}</li>} + li_stack
- end
-
- li_stack.html_safe
+ %{<li class='nav-header'>#{RailsAdmin::Config.navigation_static_label || t('admin.misc.navigation_static_label')}</li>#{li_stack.presence}}.html_safe
end
def navigation nodes_stack, nodes, level

0 comments on commit 6417e1a

Please sign in to comment.