Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Action before or after evaluation #32

Open
ghost opened this issue Dec 8, 2012 · 4 comments
Open

Action before or after evaluation #32

ghost opened this issue Dec 8, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2012

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

@kn
Copy link

kn commented Dec 8, 2012

Hi @vpoulain,

That's interesting idea!

What's the use cases you are thinking of?

@ghost
Copy link
Author

ghost commented Dec 8, 2012

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 ?

@kn
Copy link

kn commented Dec 8, 2012

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 :)

@ghost
Copy link
Author

ghost commented Dec 18, 2012

Yeah, I can give a try after the Christmas break ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants