method

show_deprecation_warnings

rails latest stable - Class: ActiveRecord::Associations::Builder::HasAndBelongsToMany

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

show_deprecation_warnings()
public

No documentation available.

# File activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb, line 17
    def show_deprecation_warnings
      super

      [:delete_sql, :insert_sql].each do |name|
        if options.include? name
          ActiveSupport::Deprecation.warn("The :#{name} association option is deprecated. Please find an alternative (such as using has_many :through).")
        end
      end
    end