Report question

Question: How do I write a custom validation method with parameters for my ActiveRecord model?