Ghost/ghost/admin/app/services/session.js
2016-01-19 07:03:27 -06:00

16 lines
314 B
JavaScript

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