Skip to content

Commit

Permalink
Fixed keyword argument warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrgrey committed May 19, 2020
1 parent 0801293 commit 0b4b685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/performify/validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.extended(base)
module ClassMethods
def schema(outer_schema = nil, &block)
if block_given?
@schema = Dry::Schema.Params({}, &block)
@schema = Dry::Schema.Params(**{}, &block)
elsif outer_schema.present? && outer_schema.is_a?(Dry::Schema::Params)
@schema = outer_schema
else
Expand Down

0 comments on commit 0b4b685

Please sign in to comment.