mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Error reloading dev due to conditional require
This commit is contained in:
parent
fcfcda099f
commit
8a9fa3e5bf
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue