instance method
scope
Ruby on Rails 8.0.4
Since v4.0.13Signature
scope()
Returns a Relation object for the records in this association
Source
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 949
def scope
@scope ||= @association.scope
end
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 949
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy