summaryrefslogtreecommitdiffstats
path: root/lib/redmine/ciphering.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/ciphering.rb')
-rw-r--r--lib/redmine/ciphering.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/ciphering.rb b/lib/redmine/ciphering.rb
index 3dd5df826..186709016 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(false)
+ raise(ActiveRecord::Rollback) unless object.save(:validation => false)
end
end ? true : false
end
@@ -81,8 +81,8 @@ module Redmine
transaction do
all.each do |object|
clear = object.send(attribute)
- object.write_attribute attribute, clear
- raise(ActiveRecord::Rollback) unless object.save(false)
+ object.send :write_attribute, attribute, clear
+ raise(ActiveRecord::Rollback) unless object.save(:validation => false)
end
end
end ? true : false