lib/symmetric_encryption/railties/mongoid_encrypted.rb in symmetric-encryption-4.3.2 vs lib/symmetric_encryption/railties/mongoid_encrypted.rb in symmetric-encryption-4.3.3
- old
+ new
@@ -98,10 +98,11 @@
if decrypted_field_name.nil? && encrypted_field_name.to_s.start_with?("encrypted_")
decrypted_field_name = encrypted_field_name.to_s["encrypted_".length..-1]
end
if decrypted_field_name.nil?
- raise(ArgumentError, "SymmetricEncryption for Mongoid. Encryption enabled for field #{encrypted_field_name}. It must either start with 'encrypted_' or the option :decrypt_as must be supplied")
+ raise(ArgumentError,
+ "SymmetricEncryption for Mongoid. Encryption enabled for field #{encrypted_field_name}. It must either start with 'encrypted_' or the option :decrypt_as must be supplied")
end
SymmetricEncryption::Generator.generate_decrypted_accessors(model, decrypted_field_name, encrypted_field_name, options)
end
end