Skip to content

Commit

Permalink
update application controller to use FacebookAccount as well [#89]
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Anks Nowak committed Mar 20, 2016
1 parent 14d3518 commit 9310acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def extract_locale_from_accept_language_header

def current_person
return nil unless session[:current_user_id]
@current_user ||= Account.find_by(id: session[:current_user_id]).person
@current_user ||= Account.find_by(id: session[:current_user_id]).person ||= FacebookAccount.find_by(id: session[:current_user_id]).person
end

def show_current_controller
Expand Down

0 comments on commit 9310acb

Please sign in to comment.