Skip to content

Commit

Permalink
active_hash: Fix the type of block argument for ActiveHash::Relation#…
Browse files Browse the repository at this point in the history
…find (ruby#457)

The block should take an instance of ActiveHash::Base object, not a
relation object itself.
  • Loading branch information
tk0miya authored and sw-square committed Jan 22, 2024
1 parent 61b5e20 commit d8f6579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gems/active_hash/3.2/active_hash.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module ActiveHash
| (:first, *untyped args) -> T?
| (Array[untyped] id) -> Array[T]
| (untyped id) -> T?
| () { (instance) -> boolish } -> T?
| () { (T) -> boolish } -> T?
def find_by: (untyped options) -> T?
def find_by!: (untyped options) -> T
def find_by_id: (untyped id) -> T?
Expand Down

0 comments on commit d8f6579

Please sign in to comment.