lib/spiderfw/widget/widget.rb in spiderfw-0.6.28 vs lib/spiderfw/widget/widget.rb in spiderfw-0.6.29

- old
+ new

@@ -288,14 +288,13 @@ end def widget_target=(target) @widget_target = target end - + def widget_request_path p = @request.path - i = p.index(@_action) if @_action && !@_action.empty? - p = p[0..i-2] if i + p = p.sub(/\/#{Regexp.escape(@_action)}$/, '') unless @_action.blank? p = p.sub(/\/+$/, '') return p end def before(action='')