lib/mongoid/errors/invalid_relation_option.rb in mongoid-7.3.5 vs lib/mongoid/errors/invalid_relation_option.rb in mongoid-7.4.0
- old
+ new
@@ -1,7 +1,6 @@
# frozen_string_literal: true
-# encoding: utf-8
module Mongoid
module Errors
# Raised when an option provided for an association is invalid.
@@ -14,11 +13,9 @@
#
# @param [ Class ] klass The model class.
# @param [ String, Symbol ] name The association name.
# @param [ Symbol ] option The invalid option.
# @param [ Array<Symbol> ] valid_options The valid option.
- #
- # @since 3.0.0
def initialize(klass, name, option, valid_options)
super(
compose_message(
"invalid_relation_option",
{ klass: klass, name: name, option: option, valid_options: valid_options }