Remove after_initialize, after_create for discussion_id
- We're already overridding the `discussion_id` method in Note. The after_initialize callback is meant to ensure there's a discussion_id for all notes if there wasn't one created (or it got deleted?) - after_initialize runs Ruby code for _every_ instantiation whether it needs to or not. I've found this to cause performance problems.
Showing
Please register or sign in to comment