Skip to content

Instantly share code, notes, and snippets.

@lxcodes
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lxcodes/d135dafcf691ea756178 to your computer and use it in GitHub Desktop.
Save lxcodes/d135dafcf691ea756178 to your computer and use it in GitHub Desktop.
Pricing Failing Even With Correct Account
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
`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`
{{ log 'Account: ' session.account }}
{{ log 'Pricing?: ' session.pricingAvailable }}
{{ log 'Pricing On Account?: ' session.account.pricing }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment