Ghost/core/client/app/services/session.js

16 lines
314 B
JavaScript
Raw Normal View History

import Ember from 'ember';
import SessionService from 'ember-simple-auth/services/session';
2016-01-19 16:03:27 +03:00
const {
computed,
inject: {service}
} = Ember;
export default SessionService.extend({
2016-01-19 16:03:27 +03:00
store: service(),
user: computed(function () {
return this.get('store').findRecord('user', 'me');
})
});