mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
this warning is getting in the way of my presentation
This commit is contained in:
parent
802330269d
commit
a613347100
1 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,16 @@ module Discourse
|
|||
|
||||
require 'discourse'
|
||||
|
||||
# mocha hates us, active_support/testing/mochaing.rb line 2 is requiring the wrong
|
||||
# require, patched in source, on upgrade remove this
|
||||
if Rails.env.test? || Rails.env.development?
|
||||
require "mocha/version"
|
||||
require "mocha/deprecation"
|
||||
if Mocha::VERSION == "0.13.3" && Rails::VERSION::STRING == "3.2.12"
|
||||
Mocha::Deprecation.mode = :disabled
|
||||
end
|
||||
end
|
||||
|
||||
# Custom directories with classes and modules you want to be autoloadable.
|
||||
config.autoload_paths += %W(#{config.root}/app/serializers)
|
||||
|
||||
|
|
Loading…
Reference in a new issue