mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
16 lines
314 B
JavaScript
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');
|
|
})
|
|
});
|