pragma 1.2.0 → 1.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/pragma/operation/create.rb +2 -4
- data/lib/pragma/operation/update.rb +2 -3
- data/lib/pragma/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c08be11d2940d5f7cdadceb2a57d01606120d3
|
4
|
+
data.tar.gz: 4ce405cf293998763434a9c587fc9b0db5a28a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba317d8e8a5b98b2030a63bbf3474540bdb2ece0ddc2caea12cbd21a5371bfd1dc490d15afbc6dc526030f854806990e2e43b477e0e28c28ed42f3dbf647313
|
7
|
+
data.tar.gz: ab0c3bfe2c1e62e716904e38aa8449b0d3a18d8ad6fa9a375739897704d1538fad5f14b0c4ae3c12748e086238c0c846085d90b957d724cc001864e76ebb0769
|
@@ -15,10 +15,8 @@ module Pragma
|
|
15
15
|
validate! context.contract
|
16
16
|
authorize! context.contract
|
17
17
|
|
18
|
-
context.contract.save
|
19
|
-
|
20
|
-
context.record.save!
|
21
|
-
end
|
18
|
+
context.contract.save
|
19
|
+
context.record.save!
|
22
20
|
|
23
21
|
respond_with status: :created, resource: decorate(context.record)
|
24
22
|
end
|
@@ -15,9 +15,8 @@ module Pragma
|
|
15
15
|
validate! context.contract
|
16
16
|
authorize! context.contract
|
17
17
|
|
18
|
-
context.contract.save
|
19
|
-
|
20
|
-
end
|
18
|
+
context.contract.save
|
19
|
+
context.record.save!
|
21
20
|
|
22
21
|
respond_with resource: decorate(context.record)
|
23
22
|
end
|
data/lib/pragma/version.rb
CHANGED