From 7bf256ecfae9ae939de487b579b7225d76f3a407 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Thu, 10 Mar 2011 15:29:49 +0100 Subject: [PATCH] we need @all_aspects not only in html views --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fbbfb067f..f56d16d8c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -26,10 +26,10 @@ class ApplicationController < ActionController::Base if user_signed_in? && request.format.html? @aspect = nil @object_aspect_ids = [] - @all_aspects = current_user.aspects @notification_count = Notification.for(current_user, :unread =>true).count @unread_message_count = ConversationVisibility.sum(:unread, :conditions => "person_id = #{current_user.person.id}") end + @all_aspects = current_user.aspects end def count_requests