jacs 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/actionjabber.rb +6 -3
- metadata +2 -2
data/lib/actionjabber.rb
CHANGED
@@ -7,9 +7,12 @@ module ActionJabber
|
|
7
7
|
end
|
8
8
|
def route!(request)
|
9
9
|
@@request = request
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
@@routes.each do |route|
|
11
|
+
if route.first == request.path
|
12
|
+
return route.last.call
|
13
|
+
break
|
14
|
+
end
|
15
|
+
end
|
13
16
|
end
|
14
17
|
def request
|
15
18
|
@@request
|