Sha256: a236bce699def244973b0d6fba7344c65da68336f0600804005179b92d02d098
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
require 'active_record/type/serialized' module ActiveRecord # ... module PGCrypto # Patched `serialize` wrapper class to play well with [ActiveModel::Dirty] module PatchedSerialized # Determines whether the mutable value has been modified since it was read # # Since encrypted binary data, from our coder, # can return same decrypted values, we don't check it. # # @return [FalseClass] on our coder values. def changed_in_place?(*args, **kwargs) return false if coder == ActiveRecord::PGCrypto::SymmetricCoder super end end ActiveRecord::Type::Serialized.prepend(PatchedSerialized) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_record-pgcrypto-0.2.6 | lib/active_record/pgcrypto/patches.rb |
active_record-pgcrypto-0.2.5 | lib/active_record/pgcrypto/patches.rb |