Action before or after evaluation
Hi ! I'm using this gem, thank you ! Is it possible to do any action automatically before or after evaluation ? Like before_save or after_validation for an ActiveRecord.
Thank you
Hi @vpoulain,
That's interesting idea!
What's the use cases you are thinking of?
In my case, when my Item's evaluation reach a certain score, I have to modify an attribute of my Item. So, currently I check the new evaluation in my controller after update evaluation. But I'd prefer put this behavior into a model, why not by using after_evaluation. You see what I mean ?
That makes sense.
Right now, such use case is not supported yet.
I'll work on it if I get a chance or you are more than welcome to give it a try :)
Yeah, I can give a try after the Christmas break ;)