Rails:define_method in models can enable you to reduce the code you have to write while improving the code quality. Read this to get a better understanding.