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

@@ -2,7 +2,7 @@ class Api::V1::Accounts::Contacts::NotesController < Api::V1::Accounts::Contacts
before_action :note, except: [:index, :create]
def index
@notes = @contact.notes.includes(:user)
@notes = @contact.notes.latest.includes(:user)
end
def create