feat: Add all filter for conversations (#3102)

This commit is contained in:
Pranav Raj S
2021-09-29 16:23:39 +05:30
committed by GitHub
parent d55a48037a
commit cc244833d0
11 changed files with 81 additions and 22 deletions

View File

@@ -94,6 +94,8 @@ class ConversationFinder
end
def filter_by_status
return if params[:status] == 'all'
@conversations = @conversations.where(status: params[:status] || DEFAULT_STATUS)
end