Skip to content

Instantly share code, notes, and snippets.

@alexspeller
Forked from superlou/gist:6203109
Created August 11, 2013 02:30
Show Gist options
  • Save alexspeller/6203131 to your computer and use it in GitHub Desktop.
Save alexspeller/6203131 to your computer and use it in GitHub Desktop.
LibraryAdapter = Ember.RESTAdapter.extend
didFind: (record, id, data)->
if /^code:/.test(id)
id = data.id
record.load(id, data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment