Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Azdaroth committed Oct 3, 2024
1 parent 42800c5 commit 82a5a0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/crypt_keeper/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def crypt_keeper(*args)
end

crypt_keeper_fields.each do |field|
serialize field, encryptor
if CryptKeeper.active_record_7_1?
serialize field, coder: encryptor
else
serialize field, encryptor
end
end
end

Expand Down Expand Up @@ -120,7 +124,7 @@ def decrypt_table!
def encryptor_klass
@encryptor_klass ||= "CryptKeeper::Provider::#{crypt_keeper_encryptor.to_s.camelize}".constantize
rescue NameError
# couldn’t constantize...
# couldn’t constantize...
nil
end

Expand Down

0 comments on commit 82a5a0b

Please sign in to comment.