We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb6697c commit 8a5f575Copy full SHA for 8a5f575
1 file changed
README.md
@@ -269,7 +269,8 @@ end
269
```ruby
270
class BookResource < JSONAPI::Resource
271
272
- # Only book_admins may see unapproved comments for a book. Using a lambda to select the correct relation on the model
+ # Only book_admins may see unapproved comments for a book. Using
273
+ # a lambda to select the correct relation on the model
274
has_many :book_comments, relation_name: -> (options = {}) {
275
context = options[:context]
276
current_user = context ? context[:current_user] : nil
0 commit comments