Skip to content

Commit

Permalink
fix readOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Dec 12, 2016
1 parent eaa3435 commit fe74d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/-private/system/record-arrays/record-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ export default Ember.ArrayProxy.extend(Ember.Evented, {
@property type
@type DS.Model
*/
type: computed.readOnly('modelName', function() {
type: computed('modelName', function() {
if (!this.modelName) {
return null;
}
return this.store.modelFor(this.modelName);
}),
}).readOnly(),

/**
Retrieves an object from the content by index.
Expand Down

0 comments on commit fe74d89

Please sign in to comment.