Skip to content

Commit

Permalink
Update README formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tjvc committed Jul 31, 2024
1 parent 5f8ea81 commit 7a6327e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ Record updates to rebalance ranks do not trigger ActiveRecord callbacks. If you
(to index them in a secondary data store, for example), you can subscribe to the `ranked_model.ranks_updated`
[ActiveSupport notification](https://api.rubyonrails.org/v7.1/classes/ActiveSupport/Notifications.html).
Subscribed consumers receive an event for each rearrangement or rebalancing, the payload of which includes the
triggering instance and the scope and with_same options for the ranking, which can be used to retrieve the affected
records.
triggering instance and the `scope` and `with_same` options for the ranking, which can be used to retrieve the
affected records.

```ruby
ActiveSupport::Notifications.subscribe("ranked_model.ranks_updated") do |_name, _start, _finish, _id, payload|
Expand Down

0 comments on commit 7a6327e

Please sign in to comment.