« All deprecation guides

Deprecation Guide for Deprecate Model Reopenclass

until: 5.0
id: ember-data:deprecate-model-reopenclass

Instead of reopenClass, define static properties with native class syntax or add them to the final object.

Instead of:

User.reopenClass({ aStaticMethod() {} });

Do this:

class User {
  static aStaticMethod() {}
}

Or, do this:

User.aStaticMethod = function () {};