Last active
August 29, 2015 14:05
-
-
Save lxcodes/d135dafcf691ea756178 to your computer and use it in GitHub Desktop.
Pricing Failing Even With Correct Account
This file contains 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
Account: Class {isFulfilled: false, isRejected: false, __ember1408629527214: null, __nextSuper: undefined, __ember1408629527214_meta: Object…} vendor.js:16672 | |
Pricing?: false vendor.js:16672 | |
Pricing On Account?: undefined |
This file contains 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
`import Ember from 'ember'` | |
`import SimpleAuthSession from 'simple-auth/session'` | |
CustomSession = SimpleAuthSession.reopen | |
account: (-> | |
return @container.lookup('store:main').find('user','me') | |
).property() | |
pricingAvailable: Ember.computed.bool('account.pricing') | |
`export default CustomSession` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment