Skip to content

Commit

Permalink
Add reset_{association} to the docs for ActiveRecordAssociations
Browse files Browse the repository at this point in the history
  • Loading branch information
cbothner committed Apr 15, 2024
1 parent 5c5fb63 commit 2e4b4a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tapioca/dsl/compilers/active_record_associations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ module Compilers
#
# sig { returns(T.nilable(::Category)) }
# def reload_category; end
#
# sig { void }
# def reset_author; end
#
# sig { void }
# def reset_category; end
# end
# end
# ~~~
Expand Down
6 changes: 6 additions & 0 deletions manual/compiler_activerecordassociations.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ class Post

sig { returns(T.nilable(::Category)) }
def reload_category; end

sig { void }
def reset_author; end

sig { void }
def reset_category; end
end
end
~~~

0 comments on commit 2e4b4a3

Please sign in to comment.