luckyframework / luckyframework/website

Added doc of preload with &block.

Open Beginner friendly
#1,572 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

guides:missing
Dominant language
Crystal
Stars
39
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Our doc have this:

q = q.preload_votes(VoteQuery.new.user_id(me.id))

But, no this: (GPT told me, this work)

q = q.preload_votes { |vote_query| vote_query.user_id(me.id) }

Actually, I prefer later, but, no doc.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the existing documentation for preload_votes in the website repository and compare the documented query-object example with the requested block form. Add the block example, then verify the documentation renders correctly and shows both supported forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.