Module: Redmine::Ciphering::ClassMethods
- Defined in:
- lib/redmine/ciphering.rb
Instance Method Summary collapse
Instance Method Details
#encrypt_all(attribute) ⇒ Object
70 71 72 73 74 75 76 77 78 |
# File 'lib/redmine/ciphering.rb', line 70 def encrypt_all(attribute) transaction do all.each do |object| clear = object.send(attribute) object.send "#{attribute}=", clear raise(ActiveRecord::Rollback) unless object.save(:validation => false) end end ? true : false end |