Skip to content

Commit

Permalink
Merge pull request #2449 from brucebolt/update-readme-callbacks
Browse files Browse the repository at this point in the history
Update callbacks in README
  • Loading branch information
mshibuya committed Feb 24, 2020
2 parents 3356634 + 0c67436 commit d41ad71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1015,12 +1015,12 @@ end
Will add these callbacks:

```ruby
after_save :store_avatar!
before_save :write_avatar_identifier
after_save :store_previous_changes_for_avatar
after_commit :remove_avatar!, on: :destroy
after_commit :mark_remove_avatar_false, on: :update
after_save :store_previous_changes_for_avatar
after_commit :remove_previously_stored_avatar, on: :update
after_commit :store_avatar!, on: [:create, :update]
```

If you want to skip any of these callbacks (eg. you want to keep the existing
Expand Down

0 comments on commit d41ad71

Please sign in to comment.