mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Cleanup of finders with :conditions option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -112,7 +112,7 @@ class ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def change_user_password(login, new_password)
|
||||
user = User.first(:conditions => {:login => login})
|
||||
user = User.where(:login => login).first
|
||||
user.password, user.password_confirmation = new_password, new_password
|
||||
user.save!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user