diff --git a/README.md b/README.md index 6b5e8dd..0d979ab 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,10 @@ Callbacks can be run before, after, or around the discard and undiscard operatio A likely use is discarding or deleting associated records (but see "Working with associations" for an alternative). ``` ruby +class Comment < ActiveRecord::Base + include Discard::Model +end + class Post < ActiveRecord::Base include Discard::Model