Canceling validations in ActiveRecord by Mik-die

7d116b912a4fc7986b40d5d0d0d811d6?size=52

Sometimes there are some external validations that are brought in our #active_record models by some gems. Usually these validations are useful, but sometimes we don't want such validations, if we want redefine some gem's behavior.

So, I show you how to cancel validation in ActiveRecord model, for example Devise's validation of email uniqueness. More under the cut