RailsCasts Pro episodes are now free!

Learn more or hide this

Alexey's Profile

GitHub User: alexeymuranov

Comments by Alexey

Avatar

It should be mentioned that for the custom validation to work, the lib directory must be loaded with config.autoload_paths += %W[#{config.root}/lib/] in application.rb.