lib/rocket_job/plugins/document.rb in rocketjob-2.1.1 vs lib/rocket_job/plugins/document.rb in rocketjob-2.1.2

- old
+ new

@@ -1,8 +1,13 @@ # encoding: UTF-8 require 'active_support/concern' require 'mongo' require 'mongo_ha' +begin + require 'active_model/serializers/xml' +rescue LoadError + raise "Please add gem 'activemodel-serializers-xml' to Gemfile to support Active Model V5" +end require 'mongo_mapper' module RocketJob module Plugins # Base class for storing models in MongoDB