I have a Rails 4 project which uses Grape for API stuff, I want to do some custom validations as described in the grape documentation. I want to know where should I place my custom validations code (like in lib file) and will I need to include or require something to use it inside my API file?
The documentation tells you to make a class but I am confused about the file structure if I have to write many custom validations.