method
show_deprecation_warnings
rails latest stable - Class:
ActiveRecord::Associations::Builder::CollectionAssociation
show_deprecation_warnings()public
No documentation available.
# File activerecord/lib/active_record/associations/builder/collection_association.rb, line 32
def show_deprecation_warnings
[:finder_sql, :counter_sql].each do |name|
if options.include? name
ActiveSupport::Deprecation.warn("The :#{name} association option is deprecated. Please find an alternative (such as using scopes).")
end
end
end