I have a couple of models that are both password-oriented models. They do not belong to the same inheritance table and must be tracked in separate tables. Logically, they are both completely different types of models, but both have tracking password and password confirmation. They also use the same business logic for password rules, such as the number of characters in a password, etc.
What is the best way to verify in Rails that the code is DRY and does not repeat in Rails? What should I do?
source
share