Skip to content

Commit

Permalink
Fix ChannelSettingsMixin
Browse files Browse the repository at this point in the history
Fixes broken notifications.
Regression introduced in 25751bc: service injections are computed
properties...
  • Loading branch information
bastimeyer committed May 27, 2015
1 parent 18d5c36 commit fc74729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/mixins/ChannelSettingsMixin.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
define( [ "ember" ], function( Ember ) {

var get = Ember.get;

return Ember.Mixin.create({
/**
* Load channel specific settings
* @param {number} id
* @returns {Promise}
*/
loadChannelSettings: function( id ) {
var store = this.store;
var store = get( this, "store" );
return store.find( "channelSettings", id )
.then(function( record ) {
// get its data and unload it
Expand Down

0 comments on commit fc74729

Please sign in to comment.