rest_framework 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rest_framework/VERSION_STAMP +1 -1
- data/lib/rest_framework/routers.rb +5 -0
- data/lib/rest_framework/serializers.rb +4 -0
- 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: 3af970dedaa74cde70348a09e74b190878e4a429a4db0318b093c581f810a349
|
4
|
+
data.tar.gz: 5ccd0cf76d51d9d5d3035eee80e73e1234b13c974d04bbd4e80a48bc5b82d714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5841e302bdf9f2ae56748c2c81e94338a9c77c0dde248218d48733ff9bda28dc4a42e9cb5b21c339abf596490bb6de21e18a1f43bb8ef80802ce8d8db4d925e
|
7
|
+
data.tar.gz: 0b395e37ac08c45e3bf8d3940dde55fba063cb43b3e8125e4c9a55dbf6dc15e985c1fa72e51a042e4563194b0f4fa5f33dd3fa5e96de456eaf9448a27b7f76ad
|
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -25,6 +25,11 @@ module ActionDispatch::Routing
|
|
25
25
|
path = v.delete(:path)
|
26
26
|
end
|
27
27
|
|
28
|
+
# Set the action to be the action key unless it's already defined.
|
29
|
+
if !kwargs[:action]
|
30
|
+
kwargs[:action] = k
|
31
|
+
end
|
32
|
+
|
28
33
|
# Pass any further kwargs to the underlying Rails interface.
|
29
34
|
kwargs = kwargs.merge(v)
|
30
35
|
elsif v.is_a?(Symbol) || v.is_a?(String)
|