Skip to content

Commit

Permalink
Cleans up method name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed May 4, 2016
1 parent 6d7ac40 commit c9c2137
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -136,7 +136,7 @@ public DefaultActionMapper() {
put(METHOD_PREFIX, new ParameterAction() {
public void execute(String key, ActionMapping mapping) {
if (allowDynamicMethodCalls) {
mapping.setMethod(key.substring(METHOD_PREFIX.length()));
mapping.setMethod(cleanupActionName(key.substring(METHOD_PREFIX.length())));
}
}
});
Expand All @@ -148,7 +148,7 @@ public void execute(final String key, ActionMapping mapping) {
if (allowDynamicMethodCalls) {
int bang = name.indexOf('!');
if (bang != -1) {
String method = name.substring(bang + 1);
String method = cleanupActionName(name.substring(bang + 1));
mapping.setMethod(method);
name = name.substring(0, bang);
}
Expand Down

0 comments on commit c9c2137

Please sign in to comment.