|
@@ -23,11 +23,16 @@ import (
|
|
|
type Simple struct {
|
|
|
|
|
|
Schema string
|
|
|
+
|
|
|
+
|
|
|
+ DisableRecordRule bool
|
|
|
}
|
|
|
|
|
|
func (simple *Simple) bind(binder *binding.Binder) {
|
|
|
(&definition.Simple{Schema: simple.Schema}).Bind(binder)
|
|
|
- (&rule.Simple{Schema: simple.Schema}).Bind(binder)
|
|
|
+ if !simple.DisableRecordRule {
|
|
|
+ (&rule.Simple{Schema: simple.Schema}).Bind(binder)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func Bind(app *application.App, simple *Simple) {
|