From 1143893d9c4864bf746a3933eea179cd627d29f8 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Mon, 23 Dec 2019 12:16:46 +0530 Subject: [PATCH] [Bug] Fix conversation assignment mailer url (#374) * Fix conversation assignment mailer url * Remove mailer scope --- .../assignment_mailer/conversation_assigned.html.erb | 2 +- config/routes.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/assignment_mailer/conversation_assigned.html.erb b/app/views/assignment_mailer/conversation_assigned.html.erb index d0c2cf0f8..2cb565ddb 100644 --- a/app/views/assignment_mailer/conversation_assigned.html.erb +++ b/app/views/assignment_mailer/conversation_assigned.html.erb @@ -2,4 +2,4 @@

Time to save the world. A new conversation has been assigned to you

-

Click <%= link_to 'here', conversation_url(id: @conversation.display_id) %> to get cracking.

+

Click <%= link_to 'here', app_conversation_url(id: @conversation.display_id) %> to get cracking.

diff --git a/config/routes.rb b/config/routes.rb index 8a55f2ac1..e810700d9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,7 +13,7 @@ Rails.application.routes.draw do resources :widgets, only: [:index] - namespace :api, :defaults => { :format => 'json' } do + namespace :api, defaults: { format: 'json' } do namespace :v1 do resources :callbacks, only: [] do collection do @@ -76,18 +76,18 @@ Rails.application.routes.draw do get :summary end end - + resources :webhooks, only: [] do collection do post :chargebee end end end - end end - scope module: 'mailer' do + # Used in mailer templates + resource :app, only: [:index] do resources :conversations, only: [:show] end