discourse/app/assets/javascripts/admin/models/email-settings.js.es6
2016-03-31 17:40:54 -04:00

12 lines
266 B
JavaScript

const EmailSettings = Discourse.Model.extend({});
EmailSettings.reopenClass({
find: function() {
return Discourse.ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;