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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1427288bd6684bc328bd89cb3c533669d7f983a8
4
- data.tar.gz: 0d581992a20a18f564b1cfeb86ee7a01d5385afc
3
+ metadata.gz: 38c08be11d2940d5f7cdadceb2a57d01606120d3
4
+ data.tar.gz: 4ce405cf293998763434a9c587fc9b0db5a28a6a
5
5
  SHA512:
6
- metadata.gz: e2498df272683877a28ec0f4de9807c603c0acb7a7b3173174b950ccfccb964f546999076a6b444e48a26069b63f3dea1c8bdcb9e64979c2810eb66f4580720f
7
- data.tar.gz: '0906f1c390d99827258becd682f4dec92dffca7211758bf0df927e04706268ae90980cb0235e6b421ad9c39f45dab0192e71fabb679e6a3a1d07cbc612f3cbc1'
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 do |hash|
19
- context.record.assign_attributes(hash)
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 do |hash|
19
- context.record.update! hash
20
- end
18
+ context.contract.save
19
+ context.record.save!
21
20
 
22
21
  respond_with resource: decorate(context.record)
23
22
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis