Skip to content

Commit

Permalink
Revert "Encryption casting with encrypts before serialize"
Browse files Browse the repository at this point in the history
This reverts commit 4dd2b22.
  • Loading branch information
djmb committed Aug 23, 2024
1 parent 9828e89 commit ff9a801
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion activerecord/test/models/book_encrypted.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class EncryptedBookWithBinary < ActiveRecord::Base
class EncryptedBookWithSerializedBinary < ActiveRecord::Base
self.table_name = "encrypted_books"

encrypts :logo
serialize :logo, coder: JSON
encrypts :logo
end

class EncryptedBookWithCustomCompressor < ActiveRecord::Base
Expand Down
3 changes: 0 additions & 3 deletions activerecord/test/models/traffic_light_encrypted.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ class EncryptedTrafficLight < TrafficLight
class EncryptedTrafficLightWithStoreState < TrafficLight
store :state, accessors: %i[ color ], coder: ActiveRecord::Coders::JSON
encrypts :state
serialize :state, type: Array
serialize :long_state, type: Array
store :state, accessors: %i[ color ], coder: ActiveRecord::Coders::JSON
end

0 comments on commit ff9a801

Please sign in to comment.