uhm, --amend
This commit is contained in:
parent
7bf256ecfa
commit
58796dcde2
1 changed files with 8 additions and 6 deletions
|
|
@ -23,7 +23,8 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def set_header_data
|
||||
if user_signed_in? && request.format.html?
|
||||
if user_signed_in?
|
||||
if request.format.html?
|
||||
@aspect = nil
|
||||
@object_aspect_ids = []
|
||||
@notification_count = Notification.for(current_user, :unread =>true).count
|
||||
|
|
@ -31,6 +32,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
@all_aspects = current_user.aspects
|
||||
end
|
||||
end
|
||||
|
||||
def count_requests
|
||||
@request_count = Request.where(:recipient_id => current_user.person.id).count if current_user
|
||||
|
|
|
|||
Loading…
Reference in a new issue