active-hash / active-hash/active_hash
Many-To-Many Relationship
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.4k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
How can i define many to many relationship?
When i set has_many through relationship, console says this:
NoMethodError: undefined method relation_delegate_class for Permission:Class from lib/ruby/gems/2.3.0/gems/active_hash-1.4.0/lib/active_hash/base.rb:239:in method_missing
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 reproducing the has_many through setup described in the issue and inspect lib/ruby/gems/2.3.0/gems/active_hash-1.4.0/lib/active_hash/base.rb at line 239, where relation_delegate_class is reported missing. Trace how Permission is defined and how the relationship is delegated; done means the many-to-many relationship can be defined without the NoMethodError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100