How to validate the uniqueness of an attribute across multiple models in Rails
I recently ran into the situation where I had to validate an attribute across multiple models. It can be beautifully solved with a ActiveSupport Concern and I blogged about it today. Check it out and let me know what you think in the comments!
Post a comment