Hacker News new | ask | show | jobs
by jvans 4464 days ago
I think this is a responsibility that lies in the model. What if you decide to allocate tickets through a different model? You have to remember to include this policy everywhere. Another approach i think is reasonable is creating a class for this on the model level.

https://gist.github.com/jvans1/9745395