method
show_deprecation_warnings
rails latest stable - Class:
ActiveRecord::Associations::Builder::HasAndBelongsToMany
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