Module: Sequel::Plugins::DeprecatedAssociations::ClassMethods
- Defined in:
- lib/sequel/plugins/deprecated_associations.rb
Instance Method Summary collapse
- 
  
    
      #association_reflection(assoc)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Issue a deprecation warning if the association is deprecated. 
Instance Method Details
#association_reflection(assoc) ⇒ Object
Issue a deprecation warning if the association is deprecated.
| 64 65 66 67 68 69 70 71 72 | # File 'lib/sequel/plugins/deprecated_associations.rb', line 64 def association_reflection(assoc) ref = super if ref && ref[:deprecated] emit_deprecated_association_warning(ref, nil) do "Access of association reflection for deprecated association: class:#{name} association:#{assoc}" end end ref end |