fesplugas/typus — pull request #375 by mergulhao (2012-06-20 21:05:33+00:00)
Title: Fix view bug when using belongs_to a model that have a tree.

The error happened to me when using belongs_to a category model that implements ancestry. Error:

```ruby
ActionView::Template::Error (undefined method `any?' for #):
2:
3:

4: <%= form.label attribute, label_text %>
5: <% if values.any? %>
6: <%= form.select related_fk, values, options, html_options.merge(:class => chosen_class, :style => "width: 350px;") %>
7: <% else %>
8: <%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
typus (3.1.10) app/views/admin/templates/_belongs_to.html.erb:5:in `___sers_mergulhao__rvm_gems_ruby_______p____mamaeeukero_gems_typus________app_views_admin_templates__belongs_to_html_erb__4349892039727894371_2165900060'
```