summaryrefslogtreecommitdiffstats
path: root/lib/redmine/ciphering.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-09-02 08:48:36 +0000
committerGo MAEDA <maeda@farend.jp>2020-09-02 08:48:36 +0000
commit82c2c4f5332d93b48c30312a67a7382c6010cfd6 (patch)
tree187c21e81812fa57a263cf6da3c31480fbcfac7d /lib/redmine/ciphering.rb
parent970ef52d36714095086b38a56c15706931949f41 (diff)
downloadredmine-82c2c4f5332d93b48c30312a67a7382c6010cfd6.tar.gz
redmine-82c2c4f5332d93b48c30312a67a7382c6010cfd6.zip
Merged r19999 from trunk to 4.0-stable (#33926).
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@20004 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/ciphering.rb')
-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 ad30e035f..6b9364219 100644
--- a/lib/redmine/ciphering.rb
+++ b/lib/redmine/ciphering.rb
@@ -72,7 +72,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
@@ -82,7 +82,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