Are there any plans to support ActiveRecord `.find_by_xxx`?
Open
Nobody has claimed this yet.
help-wanted
- Dominant language
- Ruby
- Stars
- 873
- Forks
- 164
- Avg merge
- 4d 27m
- Merged PRs (30d)
- 9
Description
If I understand correctly, I think it is currently as follows
# NG
Article.find_by_id(target_id) # -> error: find_by_id not found
# OK
Article.find_by(id: target_id) # -> no error
I would like Tapioca to support the generation of .find_by_xxx.
Do you have plans to do so?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Tapioca's ActiveRecord RBI generation code and its handling of finder methods. Check how the existing find_by support is tested, then determine the expected generated RBI for .find_by_xxx. Done means the requested finder methods are generated consistently and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100