Flowdock
method

count

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Associations::AssociationCollection

Method deprecated or moved

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

These similar methods exist in v6.1.7.7:

count(column_name = nil, options = {}) public

Count all records using SQL. If the :counter_sql option is set for the association, it will be used for the query. If no :counter_sql was supplied, but :finder_sql was set, the descendant’s construct_sql method will have set :counter_sql automatically. Otherwise, construct options and pass them with scope to the target class’s count.

Show source
Register or log in to add new notes.