Skip to content

Commit

Permalink
fix: Change GORM reactor events config
Browse files Browse the repository at this point in the history
Gorm reactor events configuration changed in grails/grails-async@229a888. Both the config key and the default from true to false.
  • Loading branch information
matrei committed Dec 28, 2023
1 parent 8f75b5c commit d59b365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ protected boolean isGormReactorEventsEnabled() {
}

protected void applyDefaultGormConfig(Map<String, Object> config) {
config.put("grails.gorm.reactor.events", isGormReactorEventsEnabled());
if (isGormReactorEventsEnabled()) {
config.put("grails.events.spring", true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class YamlTemplateSpec extends Specification {
Map<String, Object> config = [:]
config.put("info.app.name", "foo")
config.put("grails.codegen.defaultPackage", "example")
config.put("grails.gorm.reactor.events", false)
config.put("grails.events.spring", true)
config.put("datasources.default.url", "dbURL")
config.put("datasources.default.className", "h2")
config.put("jpa.default.properties.hibernate.hbm2ddl", "auto")
Expand All @@ -24,9 +24,8 @@ class YamlTemplateSpec extends Specification {
grails:
codegen:
defaultPackage: example
gorm:
reactor:
events: false
events:
spring: true
datasources:
default:
url: dbURL
Expand Down

0 comments on commit d59b365

Please sign in to comment.