virtuatable 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/virtuatable/helpers/declarators.rb +1 -0
- data/lib/virtuatable/helpers/routes.rb +3 -1
- data/lib/virtuatable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9eb2ae4d9f7b82ca6e9bafdf86dfb811cdadab3f964b62dbcfa1f47eb9af952
|
4
|
+
data.tar.gz: 494f4a9ba4dcbe8f5f2d92f08edd3d48df23c7228f1191fa0db1d01caeb6f511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd7755448f747c7a5e4f3b15dd094b59c71e991aab96d537940cdbd75e39e0f099f75ff35297c0053b67e70d2a16dcde7487642a5ae8775bd53310246412c6d
|
7
|
+
data.tar.gz: '00875e5e4f232859121c7114b3fb17fbdfc38eda4bcd37ab3c4c9fee308608d3734f0ff9c1fb1d89eecc68d2696233e7018614874efdb13773e2a34c86f96017'
|
@@ -4,7 +4,9 @@ module Virtuatable
|
|
4
4
|
def current_route
|
5
5
|
splitted = request.env['sinatra.route'].split(' ')
|
6
6
|
verb = splitted.first.downcase
|
7
|
-
|
7
|
+
self.class.api_routes.find do |route|
|
8
|
+
route.verb == verb && route.path == splitted.last
|
9
|
+
end
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|
data/lib/virtuatable/version.rb
CHANGED