Created
November 7, 2013 12:04
-
-
Save svasva/7353555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
balance: (-> | |
@store.find('balance', {currency: @get('id')}).then (data) -> | |
return data.get('firstObject') | |
).property() |
abuiles
commented
Nov 7, 2013
balance: (->
proxy = Ember.ObjectProxy.create()
@store.find('balance', {currency: @get('id')}).then (data) ->
proxy.set('content', data.get('firstObject'))
proxy
).property()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment