Skip to content

Commit

Permalink
logged_in? -> user_signed_in? (ht: keram), Closes refineryGH-562
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Mar 27, 2011
1 parent 0355f50 commit 09c4c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/app/views/shared/_menu.html.erb
Expand Up @@ -5,7 +5,7 @@
# Select top menu items unless 'roots' is supplied.
collection ||= @menu_pages
caching = ((defined?(cache_menu) && cache_menu) || RefinerySetting.find_or_set(:cache_menu, false)) && File.writable?(Rails.cache.cache_path)
cache_if(caching && !logged_in?, [Refinery.base_cache_key, "pages_menus", dom_id, Globalize.locale, request.path].join('_')) do
cache_if(caching && !user_signed_in?, [Refinery.base_cache_key, "pages_menus", dom_id, Globalize.locale, request.path].join('_')) do
if (roots ||= collection.select{|p| p.parent_id.nil?}).present?
# In order to match items that aren't shown in menu and highlight their associations.
# This can be supplied if the logic is different in your case.
Expand Down
2 changes: 1 addition & 1 deletion pages/app/views/admin/pages/index.html.erb
@@ -1,6 +1,6 @@
<section id='records' class='tree'>
<% caching = RefinerySetting.find_or_set(:cache_pages_backend, false) && File.writable?(Rails.cache.cache_path) %>
<% cache_if(caching && !logged_in?, [Refinery.base_cache_key, "pages_backend", Globalize.locale].join('_')) do %>
<% cache_if(caching && !user_signed_in?, [Refinery.base_cache_key, "pages_backend", Globalize.locale].join('_')) do %>
<%= render :partial => 'records' %>
<% end %>
</section>
Expand Down

0 comments on commit 09c4c66

Please sign in to comment.