mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:27:28 +08:00
FIX: Error reloading dev due to conditional require
This commit is contained in:
parent
fcfcda099f
commit
8a9fa3e5bf
|
@ -3,6 +3,12 @@ require_dependency 'plugin/instance'
|
|||
require_dependency 'auth/default_current_user_provider'
|
||||
require_dependency 'version'
|
||||
|
||||
# Prevents errors with reloading dev with conditional includes
|
||||
if Rails.env.development?
|
||||
require_dependency 'file_store/s3_store'
|
||||
require_dependency 'file_store/local_store'
|
||||
end
|
||||
|
||||
module Discourse
|
||||
|
||||
require 'sidekiq/exception_handler'
|
||||
|
|
Loading…
Reference in New Issue
Block a user