2016-06-30 13:55:44 -04:00
|
|
|
import { ajax } from 'discourse/lib/ajax';
|
2015-11-20 20:27:06 -05:00
|
|
|
const EmailSettings = Discourse.Model.extend({});
|
|
|
|
|
|
|
|
EmailSettings.reopenClass({
|
|
|
|
find: function() {
|
2016-06-30 13:55:44 -04:00
|
|
|
return ajax("/admin/email.json").then(function (settings) {
|
2015-11-20 20:27:06 -05:00
|
|
|
return EmailSettings.create(settings);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default EmailSettings;
|