mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:23:37 +08:00
64557c4076
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
import EmberObject from "@ember/object";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
export default class EmailSettings extends EmberObject {
|
|
static find() {
|
|
return ajax("/admin/email.json").then(function (settings) {
|
|
return EmailSettings.create(settings);
|
|
});
|
|
}
|
|
}
|