I have an Account Model. It has a polymorphic association to an Address model. The Address model validates on what you'd expect, and the the issue comes about in the order of models and validations.
We are trying to wedge functionality into an existing design without breaking a large system. The new requirement is that the address is only validated if a boolean column (is_admin_account) is false. Where I'm running into issue is that the Address model validates before the values are updated in the Account model and, based on the bool value, I want to validate or not. The application uses InheritedResources, but I completely over-rode the create and update functions to bypass this with the same result. I'm not sure exactly where to dig into this. I considered a custom validation function, but don't want to pitch the standard validations that exist (and work with the biz rules as they stand). Anyone have a good place for me to start? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en.

