mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-29 20:16:08 +08:00
tests about app.coffee
This commit is contained in:
12
app.coffee
12
app.coffee
@@ -70,14 +70,7 @@ app.db = require './core/db'
|
||||
app.pluggable = require './core/pluggable'
|
||||
|
||||
app.schemas = {}
|
||||
|
||||
app.models =
|
||||
Account: {}
|
||||
BalanceLog: {}
|
||||
CouponCode: {}
|
||||
Notification: {}
|
||||
SecurityLog: {}
|
||||
Ticket: {}
|
||||
app.models = {}
|
||||
|
||||
app.pluggable.initializePlugins()
|
||||
|
||||
@@ -89,7 +82,8 @@ require './core/model/security_log'
|
||||
require './core/model/ticket'
|
||||
|
||||
for name, schema of app.schemas
|
||||
copy(mongoose.model(name, schema)).to app.models[name]
|
||||
model = mongoose.model name, schema
|
||||
app.models[name] = model
|
||||
|
||||
app.templates = require './core/templates'
|
||||
app.i18n = require './core/i18n'
|
||||
|
||||
Reference in New Issue
Block a user