./lib/lux/application/application.rb in lux-fw-0.5.35 vs ./lib/lux/application/application.rb in lux-fw-0.5.36
- old
+ new
@@ -70,10 +70,11 @@
def response body=nil, status=nil
return @current.response unless body
response.status status || 200
response.body body
+ throw :done
end
# Tests current root against the string to get a mach.
# Used by map function
def test? route
@@ -282,9 +283,11 @@
response.body data[2]
else
response.body data
end
end
+
+ throw :done if body?
# figure our action unless defined
unless action
id =
if respond_to?(:id?)