restpack_service 0.0.53 → 0.0.54
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c374f155811025692cb5113732648a24655b66a
|
4
|
+
data.tar.gz: e7dcc2d57583bf6e84bd0ffd133190840afbe739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb4215408dd15804f8ee1e3ca807d12a59747f2dbf11acb4bbf3e1b61c7f16c3122724ccddb5940ac9fd5e6c00baabd80262f25e2ec86e66d11440da087977f
|
7
|
+
data.tar.gz: 6bf3ea25c7332b2dd31207386e0caf2fe8e710ec03be79cc6fa7a2c93ffee3ac7a83cf175a6304801796a5dcf4101fcf7ee55c4508d468a15321029222164040
|
@@ -1,6 +1,6 @@
|
|
1
|
-
def it_acts_as_create_command(type)
|
1
|
+
def it_acts_as_create_command(namespace, type)
|
2
2
|
plural = "#{type}s".to_sym
|
3
|
-
namespaced_type = "#{
|
3
|
+
namespaced_type = "#{namespace.to_s.camelize}::#{type.to_s.camelize}"
|
4
4
|
|
5
5
|
model_class = "Models::#{namespaced_type}".constantize
|
6
6
|
serializer_class = "Serializers::#{namespaced_type}".constantize
|