summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-09-02 08:46:29 +0000
committerGo MAEDA <maeda@farend.jp>2020-09-02 08:46:29 +0000
commitecf41c054740d7e0b99a6fc3cdcf18ed75043411 (patch)
tree09b2a6f3f3a06728ae704f1fac6ce90bad35727d /lib/redmine
parent66d0ad6f4844ba0af7232cacb1023f1fa614a64a (diff)
downloadredmine-ecf41c054740d7e0b99a6fc3cdcf18ed75043411.tar.gz
redmine-ecf41c054740d7e0b99a6fc3cdcf18ed75043411.zip
Merged r19999 from trunk to 4.1-stable (#33926).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20003 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/ciphering.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/ciphering.rb b/lib/redmine/ciphering.rb
index eea752159..49b76b7e7 100644
--- a/lib/redmine/ciphering.rb
+++ b/lib/redmine/ciphering.rb
@@ -74,7 +74,7 @@ module Redmine
all.each do |object|
clear = object.send(attribute)
object.send "#{attribute}=", clear
- raise(ActiveRecord::Rollback) unless object.save(:validation => false)
+ raise(ActiveRecord::Rollback) unless object.save(validate: false)
end
end ? true : false
end
@@ -84,7 +84,7 @@ module Redmine
all.each do |object|
clear = object.send(attribute)
object.send :write_attribute, attribute, clear
- raise(ActiveRecord::Rollback) unless object.save(:validation => false)
+ raise(ActiveRecord::Rollback) unless object.save(validate: false)
end
end ? true : false
end