Skip to content

Mongoid scope? #10

@nickw

Description

@nickw

Is it possible to create a Mongoid scope, or even a manual MongoDB query to sort documents by their number of tracked items? For example Page.desc(:visits)?

I've tried various techniques but since the data is nested in a Tracker instance I don't seem to have access to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions