REFACTOR: Remove InputValidation which was simply an Ember.Object

This commit is contained in:
Robin Ward
2019-11-11 15:48:33 -05:00
parent 211410c3b9
commit e39d89ecd9
16 changed files with 60 additions and 55 deletions

View File

@ -220,6 +220,15 @@ var define, requirejs;
function requireFrom(name, origin) {
name = transformForAliases(name);
if (name === "discourse/models/input-validation") {
// eslint-disable-next-line no-console
console.log(
"input-validation has been removed and should be replaced with `@ember/object`"
);
return Ember.Object;
}
var mod = EMBER_MODULES[name] || registry[name];
if (!mod) {
throw new Error(