From 82c2c4f5332d93b48c30312a67a7382c6010cfd6 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 2 Sep 2020 08:48:36 +0000 Subject: 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 --- lib/redmine/ciphering.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3