模块:Mongoid::Config::DeprecatedOptions
- 包含在:
- Mongoid::Config
- 定义于:
- lib/mongoid/config.rb
常量摘要折叠
- OPTIONS =
%i[
类方法摘要折叠
类方法详细信息
。 prepended (klass) ⇒对象
431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/mongoid/config.rb', line 431 def self.前缀(klass) klass.class_eval do 选项.每 do |选项| alias_method :"#{选项}_Without_deprecation=", :"#{选项}=" define_method(:"#{选项}=") do |值| Mongoid::警告.发送(:"warn_#{选项}_deprecated") 发送(:"#{选项}_Without_deprecation=", 值) end end end end |