decide.nolog.cz/app/controllers/error.js
jelhan 67cc41973f Ember.ObjectController is deprecated since ember 1.11
Ember.ObjectController was proxying model properties to controller. Ember.Controller which should be used is not.
Therefore we have to define if it's a property of controller or model.

Also added two more tests:
* anonymous participation
* do not force an answer for all options
2015-07-01 16:21:18 +02:00

7 lines
152 B
JavaScript

import Ember from "ember";
export default Ember.Controller.extend({
is404: function(){
return this.get('status') === 404;
}.property('status')
});