Skip to content

Instantly share code, notes, and snippets.

@brancusi
Created May 3, 2014 17:03
Show Gist options
  • Save brancusi/3e05c7e3f724660ed932 to your computer and use it in GitHub Desktop.
Save brancusi/3e05c7e3f724660ed932 to your computer and use it in GitHub Desktop.
var Session = Ember.Object.extend({isAuthenticated:true});
export default {
name: 'session',
initialize: function(container, application) {
application.register('service:session', Session);
application.inject('controller', 'session', 'service:session');
}
};
@brancusi
Copy link
Author

brancusi commented May 3, 2014

In Ember-cli generated project
initializers/session.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment