2015-06-25 17:53:03 -04:00
|
|
|
import RestModel from 'discourse/models/rest';
|
|
|
|
|
|
|
|
const Query = RestModel.extend({
|
|
|
|
createProperties() {
|
2015-06-26 12:16:09 -04:00
|
|
|
return this.getProperties("name");
|
|
|
|
},
|
|
|
|
|
|
|
|
updateProperties() {
|
|
|
|
return this.getProperties("name", "description", "sql", "defaults");
|
2015-06-25 17:53:03 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
run() {
|
|
|
|
console.log("Called query#run");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Query;
|