Skip to content

Use class name provided by association AND support self-referential counts#2

Open
rylwin wants to merge 2 commits into
smathieu:masterfrom
PropertyBrands:reflect-on-class-name
Open

Use class name provided by association AND support self-referential counts#2
rylwin wants to merge 2 commits into
smathieu:masterfrom
PropertyBrands:reflect-on-class-name

Conversation

@rylwin

@rylwin rylwin commented Apr 19, 2013

Copy link
Copy Markdown

A user may specifiy a class_name on the association. We should respect
this setting otherwise we may try to constantize a non-existent class.

This PR contains a second commit that enables self-referential counts (e.g., parent/child relationship w/in a class). This is done by using a unique table alias name, which is just the original table name with a incrementing number appended.

Unfortunately, I couldn't submit this second commit w/o the first one, since it relies on some code from the first commit. Sorry about that.

rylwin added 2 commits April 19, 2013 18:08
A user may specifiy a class_name on the association. We should respect
this setting otherwise we may try to constantize a non-existent class.
@smathieu

Copy link
Copy Markdown
Owner

Thanks for these changes. Would you mind documenting the new features in the README?

@ghost ghost assigned smathieu Jun 17, 2013
@ukd1

ukd1 commented Feb 27, 2014

Copy link
Copy Markdown
Contributor

@rylwin 👍 nice. Can this get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants