Bug: Fix autoload_paths for facebook bot (#877)

* Fix autoload_paths for facebook bot
This commit is contained in:
Pranav Raj S
2020-05-18 15:32:26 +05:30
committed by GitHub
parent 6e92d9be9e
commit 3f5ce2ddbf
5 changed files with 25 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ module Chatwoot
# This is required in production for zeitwerk to autoload the file
config.paths.add File.join('app', 'bot'), glob: File.join('**', '*.rb')
config.autoload_paths << Rails.root.join('app/bot')
config.autoload_paths << Rails.root.join('app/bot/*')
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers