ALLEN WANG
ALLEN WANG
After more testings, this is not related to triggers in general but related to the power plugged trigger. I think when power adapter is plugged the system changes sleep settings...
not asking to remove one, but the issue is `after_save` callbacks are called twice, and duplicated queries are generated, isn't that an issue with the gem ?
@manuelmeurer We have a workaround that uses `after_save` instead of `autosave` and that fixed the issue on our project, not sure if you are interested in the way we are...
@manuelmeurer Thanks ! 😄 Here's the commit: https://github.com/Coursemology/active_record-acts_as/commit/ca24c95b8f1a1ce2f00fb18cf93ff000358e05e3 We have tested and used in our production product ( 80+ tables/models ) and turns out to be pretty stable.
@manuelmeurer Can let me know which rails version that you were testing on ?
Let you know first @manuelmeurer, it still happens to us with 2.2.1 in rails 4.2.8. I will see if can get an example app to reproduce this, but that will...
Experiencing the same issue, hope this can be merged soon.
Thanks @letiesperon , you comment might be valid, it has been some time and I am no long working on Rails related projects. Could you help with more investigation? does...
This sounds pretty good, @letiesperon do you want to draft a PR on it?
@swrobel Yes, I get it, this is a rails behaviour. we can fix it by propagating the email errors one level up. but i am not sure if we should...