Browse Source

Removed unnecessary ||=

Andrew 7 năm trước cách đây
mục cha
commit
eb5e10ce14
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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