Skip to content

Commit

Permalink
Fix ruby 2.7 deprecations or unblock ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyu92 committed Apr 25, 2022
1 parent eafd77a commit 1e33cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attr_encrypted/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def attr_encrypted(*attrs)

if ::ActiveRecord::VERSION::STRING >= "4.1"
define_method("#{attr}_changed?") do |options = {}|
attribute_changed?(attr, options)
attribute_changed?(attr, **options)
end
else
define_method("#{attr}_changed?") do
Expand Down

0 comments on commit 1e33cab

Please sign in to comment.