]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from AuthSource#authenticate
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 08:00:57 +0000 (08:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 08:00:57 +0000 (08:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12593 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/auth_source.rb

index 0b4db9bcc75deeabc7c8344d55216d4d70aa03d0..d99d33eed46f7034805d7370807968f1d95f150c 100644 (file)
@@ -77,7 +77,7 @@ class AuthSource < ActiveRecord::Base
 
   # Try to authenticate a user not yet registered against available sources
   def self.authenticate(login, password)
-    AuthSource.where(:onthefly_register => true).all.each do |source|
+    AuthSource.where(:onthefly_register => true).each do |source|
       begin
         logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug?
         attrs = source.authenticate(login, password)