Commit cfca7cb836ffe891d398fd92f8bdc3db976eb298
1 parent
75e97ffa
Exists in
master
and in
23 other branches
ActionItem1055: can't use string with spaces
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/sweepers/category_sweeper.rb
| @@ -3,7 +3,7 @@ class CategorySweeper < ActiveRecord::Observer | @@ -3,7 +3,7 @@ class CategorySweeper < ActiveRecord::Observer | ||
| 3 | include SweeperHelper | 3 | include SweeperHelper |
| 4 | 4 | ||
| 5 | def after_save(category) | 5 | def after_save(category) |
| 6 | - expire_fragment(category.environment.name + "_categories_menu") | 6 | + expire_fragment(category.environment.id.to_s + "_categories_menu") |
| 7 | end | 7 | end |
| 8 | 8 | ||
| 9 | end | 9 | end |
app/views/layouts/application.rhtml
| @@ -87,7 +87,7 @@ | @@ -87,7 +87,7 @@ | ||
| 87 | :id=>"menu_link_to_envhome", | 87 | :id=>"menu_link_to_envhome", |
| 88 | :title=>@environment.name %> | 88 | :title=>@environment.name %> |
| 89 | <% unless environment.enabled?(:disable_categories) %> | 89 | <% unless environment.enabled?(:disable_categories) %> |
| 90 | - <% cache(environment.name + '_categories_menu') do %> | 90 | + <% cache(environment.name.id.to_s + '_categories_menu') do %> |
| 91 | <%= render :file => 'shared/categories_menu' %> | 91 | <%= render :file => 'shared/categories_menu' %> |
| 92 | <% end %> | 92 | <% end %> |
| 93 | <% end %> | 93 | <% end %> |