mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +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');
|
|
})
|
|
});
|