Skip to content

Commit

Permalink
Fix a couple plugin apply methods to accept blocks
Browse files Browse the repository at this point in the history
This works around a warning when running the specs on Ruby 3.4.
  • Loading branch information
jeremyevans committed May 20, 2024
1 parent 116417b commit e24a3d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sequel/plugins/column_encryption.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/sequel/plugins/input_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit e24a3d6

Please sign in to comment.