Commit dd898c0059d41b848fbb652441ba13a0e27af3bd

Authored by Leandro Santos
1 parent bb7a874a

adapting query to rails4 definition

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
categories.html.erb
1 1 <ul id="cat_menu">
2   - <% @environment.top_level_categories.find(:all, :conditions => {:display_in_menu => true}).each do |item| %>
  2 + <% @environment.top_level_categories.where({:display_in_menu => true}).each do |item| %>
3 3 <li id="category category_<%= item.path %>" >
4 4 <%= link_to(item.name, {:controller => :search, :action => 'category_index', :category_path => item.path }, :title => item.name, :style=>"color: ##{item.display_color || '000000'}" ) %>
5 5 </li>
... ...