Skip to content

Commit

Permalink
Fix syntax highlighting in caching example (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored Dec 2, 2021
1 parent 9553f12 commit eea7679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ end
Aside from that, the `:cached` options on collection rendering is available on Rails >= 6.0. This will cache the
rendered results effectively using the multi fetch feature.

```
```ruby
json.array! @posts, partial: "posts/post", as: :post, cached: true

# or:
Expand Down

0 comments on commit eea7679

Please sign in to comment.