Skip to content

Instantly share code, notes, and snippets.

@BDQ
Forked from LBRapid/resource.js
Last active December 17, 2015 19:49
Show Gist options
  • Save BDQ/5663045 to your computer and use it in GitHub Desktop.
Save BDQ/5663045 to your computer and use it in GitHub Desktop.
var resource;
resource = railsResourceFactory({
url: '/api/registrations',
name: 'registration'
availableKeys: function(){
return this.$get(this.$url() + '/available_keys');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment