Skip to content
This repository
Browse code

Find user via the configured user model class

  • Loading branch information...
commit 085a9b61dcf97ac8715edc0c16dc2705478832e0 1 parent a582eec
danhodge authored December 01, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/clearance/session.rb
2  lib/clearance/session.rb
@@ -12,7 +12,7 @@ def signed_in?
12 12
 
13 13
     def current_user
14 14
       @current_user ||= with_remember_token do |token|
15  
-        ::User.find_by_remember_token(token)
  15
+        Clearance.configuration.user_model.find_by_remember_token(token)
16 16
       end
17 17
     end
18 18
 

0 notes on commit 085a9b6

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