instance method
scope
Ruby on Rails 4.2.9
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 878
def scope
@association.scope
end
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 878
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy