Skip to content

Commit

Permalink
improved consistency in searchkick and elasticsearch_rails documentat…
Browse files Browse the repository at this point in the history
…ion examples (#231) [ci-skip]
  • Loading branch information
ddnexus committed Apr 1, 2020
1 parent a3a8fc3 commit 73600be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/extras/elasticsearch_rails.md
Expand Up @@ -37,8 +37,8 @@ extend Pagy::Search
In a controller use `pagy_search` in place of `search`:

```ruby
records = Article.pagy_search(params[:q]).records
@pagy, @articles = pagy_elasticsearch_rails(records, items: 10)
response = Article.pagy_search(params[:q])
@pagy, @response = pagy_elasticsearch_rails(response, items: 10)
```

## Files
Expand Down
4 changes: 2 additions & 2 deletions docs/extras/searchkick.md
Expand Up @@ -37,8 +37,8 @@ extend Pagy::Search
In a controller use `pagy_search` in place of `search`:

```ruby
records = Article.pagy_search(params[:q]).results
@pagy, @records = pagy_searchkick(records, items: 10)
results = Article.pagy_search(params[:q])
@pagy, @results = pagy_searchkick(results, items: 10)
```

## Files
Expand Down

0 comments on commit 73600be

Please sign in to comment.