this.attributes.index = -1;
index is shown in red. The error reported on the line is that the property is read-only. I'm not sure why RubyMine thinks that the property is read-only. Anyone have any idea?