Skip to content

Commit

Permalink
Find user via the configured user model class
Browse files Browse the repository at this point in the history
  • Loading branch information
danhodge committed Dec 1, 2011
1 parent a582eec commit 085a9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clearance/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def signed_in?

def current_user
@current_user ||= with_remember_token do |token|
::User.find_by_remember_token(token)
Clearance.configuration.user_model.find_by_remember_token(token)
end
end

Expand Down

0 comments on commit 085a9b6

Please sign in to comment.