Commit cfca7cb836ffe891d398fd92f8bdc3db976eb298

Authored by Antonio Terceiro
1 parent 75e97ffa

ActionItem1055: can't use string with spaces

app/sweepers/category_sweeper.rb
... ... @@ -3,7 +3,7 @@ class CategorySweeper < ActiveRecord::Observer
3 3 include SweeperHelper
4 4  
5 5 def after_save(category)
6   - expire_fragment(category.environment.name + "_categories_menu")
  6 + expire_fragment(category.environment.id.to_s + "_categories_menu")
7 7 end
8 8  
9 9 end
... ...
app/views/layouts/application.rhtml
... ... @@ -87,7 +87,7 @@
87 87 :id=>"menu_link_to_envhome",
88 88 :title=>@environment.name %>
89 89 <% unless environment.enabled?(:disable_categories) %>
90   - <% cache(environment.name + '_categories_menu') do %>
  90 + <% cache(environment.name.id.to_s + '_categories_menu') do %>
91 91 <%= render :file => 'shared/categories_menu' %>
92 92 <% end %>
93 93 <% end %>
... ...