Skip to content

Instantly share code, notes, and snippets.

@lancejpollard
Created August 4, 2012 10:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lancejpollard/3256583 to your computer and use it in GitHub Desktop.
Save lancejpollard/3256583 to your computer and use it in GitHub Desktop.
Tower data syncing (data on the wire)
# client
class App.PostsController extends Tower.Controller
@scope 'all'
# server
class App.PostsController extends Tower.Controller
@scope 'all'
# or so only current user can read their own posts, something like
# @scope 'admin', -> App.Post.where(adminId: @get('currentUser').get('id'))
@lancejpollard
Copy link
Author

All the cases (like scopes with functions like the currentUser example) aren't setup yet, but the simple ones are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment