0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/services/session.js
2016-01-19 07:03:27 -06:00

15 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');
})
});