summaryrefslogtreecommitdiffstats
path: root/app/models/auth_source.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:00:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:00:57 +0000
commit99fe35be422a6763f31c36722378220615d4fba3 (patch)
treeac5c5da617fe2feb1c0b67676eabcac678c9d054 /app/models/auth_source.rb
parent4292f4116bbbaa9b486c9e2abae170497669f15a (diff)
downloadredmine-99fe35be422a6763f31c36722378220615d4fba3.tar.gz
redmine-99fe35be422a6763f31c36722378220615d4fba3.zip
remove unneeded Relation#all from AuthSource#authenticate
git-svn-id: http://svn.redmine.org/redmine/trunk@12593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source.rb')
-rw-r--r--app/models/auth_source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb
index 0b4db9bcc..d99d33eed 100644
--- a/app/models/auth_source.rb
+++ b/app/models/auth_source.rb
@@ -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)