モジュール: Mongoid::Config::DeprecationOptions

次のドキュメントに含まれます。
Mongoid::Config
定義:
lib/mongoid/config.rb

定数の概要の削減

OPTIONS =
%i[]

クラスメソッドの概要を折りたたむ

クラスメソッドの詳細

prepeded (klas) = オブジェクト



546
547
548
549
550
551
552
553
554
555
556
557
# ファイル 'lib/mongoid/config.rb' 行546

デフォルト 自己.先頭(klass)
  klass.Class_eval 行う
    オプション. 行う |オプション|
      analyze_method :"#{オプション}_when_deprecation=, :"#{オプション}=

      refine_method(:"#{オプション}=) 行う |価値|
        Mongoid::警告.送信(:"warn_#{オプション}_deprecation)
        送信(:"#{オプション}_when_deprecation=, 価値)
      end
    end
  end
end