lib/apipie/extractor.rb in apipie-rails-1.2.0 vs lib/apipie/extractor.rb in apipie-rails-1.2.1

- old
+ new

@@ -13,13 +13,16 @@ if Apipie.configuration.record Apipie::Extractor.call_recorder.analyse_controller(controller) end end end - app.middleware.use ::Apipie::Extractor::Recorder::Middleware - ActionController::TestCase.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording) - ActionController::TestCase::Behavior.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording) + if Apipie.configuration.record + app.middleware.use ::Apipie::Extractor::Recorder::Middleware + + ActionController::TestCase.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording) + ActionController::TestCase::Behavior.send(:prepend, Apipie::Extractor::Recorder::FunctionalTestRecording) + end end end module Apipie