Skip to content

Commit

Permalink
Binary type for attribute was getting override to Value type for 5.1 …
Browse files Browse the repository at this point in the history
…due to this.
  • Loading branch information
priyankatapar committed Dec 24, 2019
1 parent 3a9dfc7 commit 89ca46c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/attr_encrypted/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def attr_encrypted(*attrs)
options = attrs.extract_options!
attr = attrs.pop
attribute attr if ::ActiveRecord::VERSION::STRING >= "5.1.0"

options.merge! encrypted_attributes[attr]

define_method("#{attr}_was") do
Expand Down

0 comments on commit 89ca46c

Please sign in to comment.