Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More of a feature request: switchable associations #100

Open
wulftone opened this issue Oct 5, 2011 · 3 comments
Open

More of a feature request: switchable associations #100

wulftone opened this issue Oct 5, 2011 · 3 comments

Comments

@wulftone
Copy link

wulftone commented Oct 5, 2011

I've found myself frequently creating two blueprints for a single model, one with associations, one without. It would be great if there was a simple switch to turn off/on the creation of related records...

@scottkf
Copy link

scottkf commented Dec 8, 2011

+1 for this. Is this project even still active though?

@rngtng
Copy link

rngtng commented Dec 18, 2011

I didn't test, but according to wiki this is possible by passing nil for the association.

@scottkf I'm wondering too if project is still active, very sad if it wouldn't :-( - @notahat ?

@wulftone
Copy link
Author

True, but I was thinking of a more succinct way, like User.make!(:no_relations) or something (which is what I currently do, but I have to explicitly type out a new blueprint for this). Some models have lots of associations, so it'd start to be a pain to have to turn all of them off. I might add this functionality myself once my current project is over.

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

No branches or pull requests

3 participants