Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def validates_with(*args)
  2. configuration = args.extract_options!
  3.  
  4. args.each do |klass|
  5. validate klass.new(record, configuration), configuration
  6. end
  7. end
Add Comment
Please, Sign In to add comment