FIX: Error reloading dev due to conditional require

This commit is contained in:
Robin Ward 2015-07-14 14:52:35 -04:00
parent fcfcda099f
commit 8a9fa3e5bf

View file

@ -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'