yodatra 0.2.11 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yodatra/models_controller.rb +2 -2
- data/lib/yodatra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed95b4a06145c24432bfb2bdaf1e2a5a4547e40a
|
4
|
+
data.tar.gz: 05feecbc8562dcefd7eaccba2e8feb3392e8da3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ccc7aed599ecac8101a0e51685ff1c3bdfa495635810cba1e00732c5d5322e7e55c032840689bbb22f6f2c5c307e2a2bc402e296a3d0fe082a574da124dbd54
|
7
|
+
data.tar.gz: 645dbd4386668dcb74ff5abdb09444d6e9faebfe403ae02a51233e86caeacdec4395379d7ee1a208634ad12f13de24bb14ac0e7bf759e2673f28fcb160848c3f
|
@@ -55,7 +55,7 @@ module Yodatra
|
|
55
55
|
post ALL_ROUTE do
|
56
56
|
retrieve_resources CREATE_ONE do |resource|
|
57
57
|
hash = self.send("#{model_name.underscore}_params".to_sym)
|
58
|
-
@one = resource.
|
58
|
+
@one = resource.new hash
|
59
59
|
|
60
60
|
if @one.save
|
61
61
|
@one.as_json(read_scope).to_json
|
@@ -196,4 +196,4 @@ module Yodatra
|
|
196
196
|
end
|
197
197
|
|
198
198
|
end
|
199
|
-
end
|
199
|
+
end
|
data/lib/yodatra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yodatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Bonaud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|