mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
2c3abeee03
closes #4069 - Rename everything from camelCase to lowercase + dashes - Remove usage of `server`, `app` and `instance`
21 lines
454 B
JavaScript
21 lines
454 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
AppSetting,
|
|
AppSettings;
|
|
|
|
AppSetting = ghostBookshelf.Model.extend({
|
|
tableName: 'app_settings',
|
|
|
|
app: function () {
|
|
return this.belongsTo('App');
|
|
}
|
|
});
|
|
|
|
AppSettings = ghostBookshelf.Collection.extend({
|
|
model: AppSetting
|
|
});
|
|
|
|
module.exports = {
|
|
AppSetting: ghostBookshelf.model('AppSetting', AppSetting),
|
|
AppSettings: ghostBookshelf.collection('AppSettings', AppSettings)
|
|
};
|