Skip to content

Commit

Permalink
Added a necessary self in self.current_user =
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Jan 2, 2011
1 parent e06616e commit 9160ef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module SessionsHelper

def sign_in(user)
cookies.permanent.signed[:remember_token] = [user.id, user.salt]
current_user = user
self.current_user = user
end

def current_user=(user)
Expand All @@ -19,7 +19,7 @@ def signed_in?

def sign_out
cookies.delete(:remember_token)
current_user = nil
self.current_user = nil
end

def current_user?(user)
Expand Down

0 comments on commit 9160ef0

Please sign in to comment.