lib/symmetric_encryption/generator.rb in symmetric-encryption-4.1.0.beta1 vs lib/symmetric_encryption/generator.rb in symmetric-encryption-4.1.0

- old
+ new

@@ -10,10 +10,10 @@ raise(ArgumentError, "SymmetricEncryption Invalid options #{options.inspect} when encrypting '#{decrypted_name}'") unless options.empty? raise(ArgumentError, "Invalid type: #{type.inspect}. Valid types: #{SymmetricEncryption::COERCION_TYPES.inspect}") unless SymmetricEncryption::COERCION_TYPES.include?(type) if model.const_defined?(:EncryptedAttributes, _search_ancestors = false) - mod = model.const_get(:EncryptedAttributes) + mod = model.const_get(:EncryptedAttributes) else mod = model.const_set(:EncryptedAttributes, Module.new) model.send(:include, mod) end