Skip to content
Browse files

Find user via the configured user model class

  • Loading branch information...
1 parent a582eec commit 085a9b61dcf97ac8715edc0c16dc2705478832e0 @danhodge danhodge committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/clearance/session.rb
View
2 lib/clearance/session.rb
@@ -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

0 comments on commit 085a9b6

Please sign in to comment.
Something went wrong with that request. Please try again.