aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-05-09 15:44:05 +0100
committerLouise Crow <louise.crow@gmail.com>2014-05-09 15:44:05 +0100
commit039fb5cc0f2965346ef23a4ba1b9d20f6cf73805 (patch)
tree66787194865b40aaf526da58db3af18fb3b976ee
parent9952e7cc50392dd5debdd73576e89dec12c4eb73 (diff)
More rubyish syntax
-rw-r--r--app/views/general/_locale_switcher.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/general/_locale_switcher.html.erb b/app/views/general/_locale_switcher.html.erb
index a318f61f3..7d64c9069 100644
--- a/app/views/general/_locale_switcher.html.erb
+++ b/app/views/general/_locale_switcher.html.erb
@@ -1,7 +1,7 @@
- <% if FastGettext.default_available_locales.length > 1 && !params.empty? %>
+ <% if FastGettext.default_available_locales.any? && !params.empty? %>
<div id="user_locale_switcher">
<div class="btn-group">
- <% for possible_locale in FastGettext.default_available_locales %>
+ <% FastGettext.default_available_locales.each do |possible_locale| %>
<% if possible_locale == FastGettext.locale %>
<a href="#" class="btn disabled"><%= locale_name(possible_locale) %></a>
<% else %>