Skip to content

Commit

Permalink
[Doc] Fix RuboCop warning in README
Browse files Browse the repository at this point in the history
  • Loading branch information
okuramasafumi committed Jul 14, 2024
1 parent 1208998 commit dcd5445
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 @@ -1049,7 +1049,7 @@ class UserResource2
include Alba::Resource

# Since `_posts` parameter doesn't exist, `user.posts` are NOT loaded
many :posts, if: proc { |user| user.admin? }
many :posts, if: proc { |user| user.admin? && params[:include_post] }
end
```
Expand Down

0 comments on commit dcd5445

Please sign in to comment.