lib/auth_lh/authentication.rb in auth-lh-0.2.2 vs lib/auth_lh/authentication.rb in auth-lh-0.2.3
- old
+ new
@@ -16,14 +16,10 @@
@auth_user = val
end
module ClassMethods
def all_external
- unless @cache_auth_users
- @cache_auth_users = AuthLh.get_users
- end
-
- @cache_auth_users
+ AuthLh.get_users
end
def find_external(login)
all_external.find { |x| x.login == login.to_s }
end