module Sequel::Plugins::DeprecatedAssociations::ClassMethods

  1. lib/sequel/plugins/deprecated_associations.rb

Methods

Public Instance

  1. association_reflection

Public Instance methods

association_reflection(assoc)

Issue a deprecation warning if the association is deprecated.

[show source]
   # File lib/sequel/plugins/deprecated_associations.rb
64 def association_reflection(assoc)
65   ref = super
66   if ref && ref[:deprecated]
67     emit_deprecated_association_warning(ref, nil) do
68       "Access of association reflection for deprecated association: class:#{name} association:#{assoc}"
69     end
70   end
71   ref
72 end