Explorar el Código

Removed unnecessary ||=

Andrew hace 7 años
padre
commit
eb5e10ce14
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/blazer.rb

+ 1 - 1
lib/blazer.rb

@@ -68,7 +68,7 @@ module Blazer
 
   def self.user_method
     if !defined?(@user_method)
-      @user_method ||= settings["user_method"]
+      @user_method = settings["user_method"]
       if user_class
         @user_method ||= "current_#{user_class.to_s.downcase.singularize}"
       end