From e24a3d6144f5b45c871fda06ffb345214710f993 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 20 May 2024 14:17:38 -0700 Subject: [PATCH] Fix a couple plugin apply methods to accept blocks This works around a warning when running the specs on Ruby 3.4. --- lib/sequel/plugins/column_encryption.rb | 2 +- lib/sequel/plugins/input_transformer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sequel/plugins/column_encryption.rb b/lib/sequel/plugins/column_encryption.rb index 1004323d41..6d924a89ea 100644 --- a/lib/sequel/plugins/column_encryption.rb +++ b/lib/sequel/plugins/column_encryption.rb @@ -586,7 +586,7 @@ def column(column, opts=OPTS, &block) end end - def self.apply(model, opts=OPTS) + def self.apply(model, opts=OPTS, &_) model.plugin :serialization end diff --git a/lib/sequel/plugins/input_transformer.rb b/lib/sequel/plugins/input_transformer.rb index 32f9efe827..31e1842163 100644 --- a/lib/sequel/plugins/input_transformer.rb +++ b/lib/sequel/plugins/input_transformer.rb @@ -24,7 +24,7 @@ module Plugins # # Make the Album class support input transformers # Album.plugin :input_transformer module InputTransformer - def self.apply(model, *) + def self.apply(model, *, &_) model.instance_exec do @input_transformers = {} @skip_input_transformer_columns = {}