Skip to content

Instantly share code, notes, and snippets.

@esad
Created December 23, 2010 09:51
Show Gist options
  • Save esad/752785 to your computer and use it in GitHub Desktop.
Save esad/752785 to your computer and use it in GitHub Desktop.
var Store = Brick.Model("Store");
var Chain = Brick.Model("Chain").hasMany(Store,{url:"/chains/<%= id %>/stores.json"});
var Country = Brick.Model("Country").hasMany(Chain);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment