Skip to content

Commit

Permalink
Subject interceptors to autowire by name
Browse files Browse the repository at this point in the history
Fixes grails#649.
  • Loading branch information
Jeff Scott Brown committed Apr 18, 2015
1 parent 24b62b9 commit 868be8a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class InterceptorsGrailsPlugin extends Plugin {

def enableJsessionId = config.getProperty(Settings.GRAILS_VIEWS_ENABLE_JSESSIONID, Boolean, false)
for(GrailsClass i in interceptors) {
"${i.propertyName}"(i.clazz) {
"${i.propertyName}"(i.clazz) { bean ->
bean.autowire = 'byName'
if (enableJsessionId) {
useJessionId = enableJsessionId
}
Expand Down

0 comments on commit 868be8a

Please sign in to comment.