diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-05-15 11:28:26 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-05-15 11:28:26 +0100 |
commit | 27d2f37f362a344c0915b200a44f8fdb724c88e2 (patch) | |
tree | 8fd2c4eb3174ee90a14a2d47044acb3a42dfaff6 | |
parent | 13039b6f1ea7098eef7b28ff1c6fb242859dad16 (diff) | |
parent | 039fb5cc0f2965346ef23a4ba1b9d20f6cf73805 (diff) |
Merge branch 'feature/idiomatic-syntax' into rails-3-develop
-rw-r--r-- | app/views/general/_locale_switcher.html.erb | 4 |
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 %> |