Sha256: dd626f658476468e6be3bfc9534bc1e6ef590b348248fa872026e3a0fa7751ef

Contents?: true

Size: 371 Bytes

Versions: 5

Compression:

Stored size: 371 Bytes

Contents

require "mongoid/fields/validators/macro"
require "semantic_logger"
module RocketJob
  module RemoveMongoidWarnings
    # Remove annoying warnings about Symbols type being deprecated.
    def validate_options(*params)
      SemanticLogger.silence(:error) { super(*params) }
    end
  end
end

::Mongoid::Fields::Validators::Macro.extend(RocketJob::RemoveMongoidWarnings)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rocketjob-5.4.1 lib/rocket_job/extensions/mongoid/remove_warnings.rb
rocketjob-5.4.0 lib/rocket_job/extensions/mongoid/remove_warnings.rb
rocketjob-5.4.0.beta2 lib/rocket_job/extensions/mongoid/remove_warnings.rb
rocketjob-5.4.0.beta1 lib/rocket_job/extensions/mongoid/remove_warnings.rb
rocketjob-5.3.3 lib/rocket_job/extensions/mongoid/remove_warnings.rb