Skip to content

Commit

Permalink
Fix URL mapping reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jul 2, 2015
1 parent 0193a4b commit 25bc0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package grails.core;

import grails.util.GrailsNameUtils;
import groovy.lang.Closure;
import org.codehaus.groovy.ast.ClassNode;
import org.codehaus.groovy.ast.InnerClassNode;
Expand Down Expand Up @@ -64,7 +65,7 @@ public ArtefactHandlerAdapter(String type, Class<? extends GrailsClass> grailsCl
}

public String getPluginName() {
return type.toLowerCase();
return GrailsNameUtils.getPropertyName(type);
}

public String getType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import org.springframework.web.context.WebApplicationContext
*/
class UrlMappingsGrailsPlugin extends Plugin {

def watchedResources = ["file:./grails-app/conf/*UrlMappings.groovy"]
def watchedResources = ["file:./grails-app/controllers/*UrlMappings.groovy"]

def version = GrailsUtil.getGrailsVersion()
def dependsOn = [core:version]
Expand Down

0 comments on commit 25bc0e8

Please sign in to comment.