this warning is getting in the way of my presentation

This commit is contained in:
Sam 2013-05-14 15:20:28 +10:00
parent 802330269d
commit a613347100

View file

@ -20,6 +20,16 @@ module Discourse
require '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. # Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/app/serializers) config.autoload_paths += %W(#{config.root}/app/serializers)