lib/mongoid/errors/invalid_field_option.rb in mongoid-7.3.5 vs lib/mongoid/errors/invalid_field_option.rb in mongoid-7.4.0
- old
+ new
@@ -1,7 +1,6 @@
# frozen_string_literal: true
-# encoding: utf-8
module Mongoid
module Errors
# This error is raised when trying to create a field that has an invalid
@@ -15,11 +14,9 @@
#
# @param [ Class ] klass The document class.
# @param [ Symbol ] name The method name.
# @param [ Symbol ] option The option name.
# @param [ Array<Symbol> ] valid All the valid options.
- #
- # @since 3.0.0
def initialize(klass, name, option, valid)
super(
compose_message(
"invalid_field_option",
{