Add guard clause to ensure incoming params
When diff_note_id is missing, exit early instead of attempting to search with a nil or empty string, which will raise an ActiveRecord::RecordNotFound exception. Changelog: fixed
Showing
Please register or sign in to comment