Skip to content

Instantly share code, notes, and snippets.

@mikeknoop
Created February 27, 2012 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mikeknoop/1921461 to your computer and use it in GitHub Desktop.
Save mikeknoop/1921461 to your computer and use it in GitHub Desktop.
initRules: () ->
# Rules are children of reads. Setup the @rules collection, set a URL on the collection.
# then fetch all the children from the api
@rules = new Rules({})
@rules.url = () ->
return "#{@url()}/rules"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment