Em 06-08-2012 11:23, Gabriel Sobrinho escreveu:
Rodrigo,

To do that you just need to add the validation to credit card and partner.

Do you mean that? http://pastie.org/private/o5zyoyqsefzhdsmwg3uoq

Yes, I meant that, but I'm not familiar with the way nested params work in Rails. I mean, the only time I really used it was when I wrote an article for Rails Magazine #4, in 2008, so it was a long time ago.

But if you're saying your implementation of NoDuplicationValidator will work for nested cases like that, then I believe on you :)

I guess you could create a pull request and it will have a more proper discussion than in this list since people will be evaluating real code.

Now that I'm more aware of what you're accomplishing here, I believe this could be a good addition to AR built-in validators.

It is just that I wasn't much interested at first, not only because I don't use nested params, but also because I'm not using AR either ;)

Good luck with that :)

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to