Skip to content

Commit

Permalink
scope should utilize Relation as the context for both Proc and bl…
Browse files Browse the repository at this point in the history
…ock. (#412)

Co-authored-by: Masataka Pocke Kuwabara <[email protected]>
  • Loading branch information
ksss and pocke authored Oct 2, 2023
1 parent bee3f8f commit c69c46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gems/activerecord/6.0/activerecord.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ interface _ActiveRecord_Relation_ClassMethods[Model, Relation, PrimaryKey]
def select: (*Symbol | String) -> Relation
| () { (Model) -> boolish } -> Array[Model]
def reselect: (*Symbol | String) -> Relation
def scope: (Symbol, ^(*untyped, **untyped) [self: Relation] -> void }) ?{ (Module extention) [self: Relation] -> void } -> void
end

# https://github.com/rails/rails/blob/fbe2433be6e052a1acac63c7faf287c52ed3c5ba/activerecord/lib/arel/nodes/unary.rb
Expand Down

0 comments on commit c69c46f

Please sign in to comment.