Skip to content

Commit 3c3a98b

Browse files
authored
fix(activemodel): mark return of persisted? and changed_in_place as bool
1 parent a5024cf commit 3c3a98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gems/activemodel/7.1/activemodel-generated.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ module ActiveModel
18641864
#
18651865
# person = Person.new(id: 1, name: 'bob')
18661866
# person.persisted? # => false
1867-
def persisted?: () -> false
1867+
def persisted?: () -> bool
18681868
end
18691869
end
18701870

@@ -2824,7 +2824,7 @@ module ActiveModel
28242824
# +deserialize+.
28252825
#
28262826
# +new_value+ The current value, after type casting.
2827-
def changed_in_place?: (untyped raw_old_value, untyped new_value) -> false
2827+
def changed_in_place?: (untyped raw_old_value, untyped new_value) -> bool
28282828

28292829
def value_constructed_by_mass_assignment?: (untyped _value) -> false
28302830

0 commit comments

Comments
 (0)