Skip to content

Commit

Permalink
Add accidentally removed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 8, 2025
1 parent 1f9eb24 commit 3f91fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rom/sql/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def initialize(schema)
end

# @api private
def call(&)
def call(&block)
arg, kwargs = select_relations(block.parameters)

if kwargs.nil?
result = instance_exec(arg, &)
result = instance_exec(arg, &block)
else
result = instance_exec(**kwargs, &)
result = instance_exec(**kwargs, &block)
end

if result.is_a?(::Array)
Expand Down

0 comments on commit 3f91fb0

Please sign in to comment.