method

deprecated_associations_api_guard

rails latest stable - Class: ActiveRecord::Associations

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

deprecated_associations_api_guard(association, method_name)
private

No documentation available.

# File activerecord/lib/active_record/associations.rb, line 92
      def deprecated_associations_api_guard(association, method_name)
        Deprecation.guard(association.reflection) { "the method #{method_name} was invoked" }
      end