Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created April 20, 2012 13:27
Show Gist options
  • Select an option

  • Save ccapndave/2428554 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/2428554 to your computer and use it in GitHub Desktop.
players.coffee
class Players extends Meteor.Collection
count: ->
@find().count()
get_idle: ->
@find({ idle: true })
Players = new Players "players"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment