Skip to content

Commit

Permalink
fix typo in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Aug 9, 2023
1 parent 90b2b3a commit d0c5348
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,19 @@ end
Callbacks can also be disabled/enabled globally:

```ruby
Esse::ActiveRecord::Hoods.disable!
Esse::ActiveRecord::Hoods.enable!
Esse::ActiveRecord::Hoods.without_indexing do
Esse::ActiveRecord::Hooks.disable!
Esse::ActiveRecord::Hooks.enable!
Esse::ActiveRecord::Hooks.without_indexing do
10.times { User.create! }
end
```

or by some specific list of index or index's repository

```ruby
Esse::ActiveRecord::Hoods.disable!(UsersIndex.repo)
Esse::ActiveRecord::Hoods.enable!(UsersIndex.repo)
Esse::ActiveRecord::Hoods.without_indexing(AccountsIndex UsersIndex.repo, ) do
Esse::ActiveRecord::Hooks.disable!(UsersIndex.repo)
Esse::ActiveRecord::Hooks.enable!(UsersIndex.repo)
Esse::ActiveRecord::Hooks.without_indexing(AccountsIndex UsersIndex.repo, ) do
10.times { User.create! }
end
```
Expand Down

0 comments on commit d0c5348

Please sign in to comment.