lib/mongoid/errors/invalid_path.rb in mongoid-7.3.5 vs lib/mongoid/errors/invalid_path.rb in mongoid-7.4.0
- old
+ new
@@ -1,7 +1,6 @@
# frozen_string_literal: true
-# encoding: utf-8
module Mongoid
module Errors
# Used when attempting to get embedded paths with incorrect root path set.
@@ -11,11 +10,9 @@
#
# @example Create the error.
# InvalidPath.new(Address)
#
# @param [ Class ] klass The document class.
- #
- # @since 3.0.14
def initialize(klass)
super(compose_message("invalid_path", { klass: klass }))
end
end
end