From 76ddd71041cdfb06a1e5197719fe78e265084b27 Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Thu, 20 Oct 2022 00:42:23 +0200 Subject: [PATCH] Add support for Ruby 2.7 and its kwargs (#383) In Ruby 3.0, positional arguments and keyword arguments will be separated. Ruby 2.7 will warn for behaviors that will change in Ruby 3.0. Co-authored-by: Igor Drozdov --- lib/attr_encrypted/adapters/active_record.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/attr_encrypted/adapters/active_record.rb b/lib/attr_encrypted/adapters/active_record.rb index fb53cc1d..78163a66 100644 --- a/lib/attr_encrypted/adapters/active_record.rb +++ b/lib/attr_encrypted/adapters/active_record.rb @@ -61,7 +61,7 @@ def attr_encrypted(*attrs) end define_method("#{attr}_changed?") do |options = {}| - attribute_changed?(attr, options) + attribute_changed?(attr, **options) end define_method("#{attr}_change") do