0
I Use This!
Activity Not Available

Project Summary

The goal of rich-join-association is to make it simpler to make use of has_many :through associations in which the join table has a single additional attribute.

(Example adapted from http://blog.hasmanythrough.com/articles/2006/04/20/many-to-many-dance-off)
So if you had Dancers, Movies, and Appearances and each Appearance had an attribute character_name, rather than saying:

  dan = Dancer.new
  cameo = Appearance.new
  cameo.dancer = dan
  cameo.movie = Movie.find_by_name 'Served'
  cameo.character_name = 'Joe the Dancemaster'
  dan.appearances << cameo

One would simply enter

  dan = Dancer.new
  s.cameos['Served'] = 'Joe the Dancemaster'

Currently, you can only use one join attribute per pair of classes joined, but if an Appearance also joined a Dancer to a Song with an attribute quality_of_performance, that would work as well.

Tags

activerecord association rails ruby

In a Nutshell, rich-join-association...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

MIT
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Use Patent Claims

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    anyone with an Open Hub account can update a project's tags
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    you can embed statistics from Open Hub on your site

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis