feat: Add notes for Contacts (#3273)

Fixes #2275
This commit is contained in:
Pranav Raj S
2021-10-25 18:35:58 +05:30
committed by GitHub
parent e5e73a08fe
commit 8e6ce3a813
29 changed files with 416 additions and 278 deletions

View File

@@ -33,6 +33,8 @@ class Note < ApplicationRecord
belongs_to :contact
belongs_to :user
scope :latest, -> { order(created_at: :desc) }
private
def ensure_account_id