Bugfix: Production autoload issue for bot.rb

- add app/bot to auto load path
This commit is contained in:
Sojan 2020-01-09 14:36:20 +05:30
parent 9c2f37d0f9
commit 6c0076665a

View file

@ -16,6 +16,10 @@ module Chatwoot
config.autoload_paths << Rails.root.join('lib')
config.eager_load_paths << Rails.root.join('lib')
# 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')
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading