summaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 19:09:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 19:09:42 +0000
commit5b21efd4a432263af5521a60d99785effad7f83b (patch)
tree41c3ecd1ce15b35eb501b50b4c9972fc878b4255 /app/controllers/users_controller.rb
parent1951c6a3fdc00853053c638b728c358931f8c017 (diff)
downloadredmine-5b21efd4a432263af5521a60d99785effad7f83b.tar.gz
redmine-5b21efd4a432263af5521a60d99785effad7f83b.zip
Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index da6f6ae28..239bd290e 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -83,7 +83,7 @@ class UsersController < ApplicationController
def new
@user = User.new(:language => Setting.default_language, :mail_notification => Setting.default_notification_option)
- @auth_sources = AuthSource.find(:all)
+ @auth_sources = AuthSource.all
end
def create
@@ -112,7 +112,7 @@ class UsersController < ApplicationController
format.api { render :action => 'show', :status => :created, :location => user_url(@user) }
end
else
- @auth_sources = AuthSource.find(:all)
+ @auth_sources = AuthSource.all
# Clear password input
@user.password = @user.password_confirmation = nil
@@ -124,7 +124,7 @@ class UsersController < ApplicationController
end
def edit
- @auth_sources = AuthSource.find(:all)
+ @auth_sources = AuthSource.all
@membership ||= Member.new
end
@@ -159,7 +159,7 @@ class UsersController < ApplicationController
format.api { render_api_ok }
end
else
- @auth_sources = AuthSource.find(:all)
+ @auth_sources = AuthSource.all
@membership ||= Member.new
# Clear password input
@user.password = @user.password_confirmation = nil