One method in several models

Let I have several models, and one method that must validate them.

I want to keep my code DRY, so how I must attach code to several models?

Search for “rails custom validators”

Best Regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs