Skip to content

Commit 89ca46c

Browse files
committed
Binary type for attribute was getting override to Value type for 5.1 due to this.
1 parent 3a9dfc7 commit 89ca46c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/attr_encrypted/adapters/active_record.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def attr_encrypted(*attrs)
5252
options = attrs.extract_options!
5353
attr = attrs.pop
5454
attribute attr if ::ActiveRecord::VERSION::STRING >= "5.1.0"
55+
5556
options.merge! encrypted_attributes[attr]
5657

5758
define_method("#{attr}_was") do

0 commit comments

Comments
 (0)