Skip to content
This repository
Browse code

respond_to? return false if current_user method is private. added tru…

…e as second parameter
  • Loading branch information...
commit 74eca664d6031d96ecce03994889d869cf84479b 1 parent f4a73e3
authored March 29, 2010 jnunemaker committed June 07, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/user_stamp.rb
4  lib/user_stamp.rb
@@ -41,8 +41,8 @@ def before_validation(record)
41 41
   
42 42
   private  
43 43
     def current_user
44  
-      if controller.respond_to?(UserStamp.current_user_method)
  44
+      if controller.respond_to?(UserStamp.current_user_method, true)
45 45
         controller.send UserStamp.current_user_method
46 46
       end
47 47
     end
48  
-end
  48
+end

0 notes on commit 74eca66

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