Hey,
For a while now, I am thinking about implementing a feature into Rails.
Since it's not a simple single liner, I thought I should get feedback on it
and maybe some guidelines before I continue on with coding it.
The feature I would like to implement is nil_object pattern.
Here's some code f
This kind of response is precisely why I came here first and didn't just
invest the time and opened a pull request.
IMHO this should be supported in the frame work, and I will be more then
happy to work on it if you guys think it should go in.
I know Ruby can be used to override the relation.
I
e MVC separation.
> I do a lot of the following:
> if some_model.user
> ...
> end
> to check the presence of the association. Your proposition will break this
> idiom which is IMHO heavily used in code.
>
> Regards,
>
> Pascal
>
>
> Le 08.09.12 20:57,
Thank you all for the feedback.
Like Rafael and Aaron said, they think it does not belong in rails.
Although I disagree, I appreciate the feedback and definitely happy I took
the time to ask for it here before opening a pull and taking more attention
from the core team for something that was not