Disable host check, fix router url

This commit is contained in:
Pranav Raj Sreepuram 2019-08-19 13:51:20 +05:30
parent 52194116b3
commit fa0904386f
3 changed files with 5 additions and 2 deletions

View file

@ -64,7 +64,7 @@ export default {
methods: {
cardClick(chat) {
router.push({
path: `/conversations/${chat.id}`,
path: `/u/conversations/${chat.id}`,
});
},
extractMessageText(chatItem) {

View file

@ -13,7 +13,7 @@ class Conversation < ApplicationRecord
belongs_to :account
belongs_to :inbox
belongs_to :assignee, class_name: 'User', optional: true
belongs_to :sender, class_name: 'Contact' #, primary_key: :source_id
belongs_to :sender, class_name: 'Contact', primary_key: :source_id
has_many :messages, dependent: :destroy, autosave: true

View file

@ -63,4 +63,7 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
# Disable host check during development
config.hosts = nil
end