• David Wilkins's avatar
    Remove after_initialize, after_create for discussion_id · ffd53c56
    David Wilkins authored
    - 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.
    ffd53c56
note.rb 15.7 KB