active_record_api-rest 1.0.28 → 1.0.29

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
  SHA256:
3
- metadata.gz: f5a44bff7a84216b93d078ce438b004627eab68915be8aaa3f395ef77917259b
4
- data.tar.gz: d3e75b5537365d031d140b24331235da3126db3b402e2ef89b7af25e752b0724
3
+ metadata.gz: 15f2eb6799a1e1674bad402bbc6ea33a655a4c067c2997958fe425f62513ccbc
4
+ data.tar.gz: 80ce4bff5d0377a215c6cd0b25bde3fd80b7965888a4c4f11f4a0a07aa351fe3
5
5
  SHA512:
6
- metadata.gz: 66607e0afd6ef5f13566a5f61b3c0d499619575a770424b6939a2a95f1fe5ca015cfb7daf7b977744a084623c6edce1abb7d2083080ca8cf0edef40ebe0ae693
7
- data.tar.gz: 739267c3974b31ee38cad8581155513dc8cf118c7d0d6c5736d7033366a70fbde8b1fe4813bc79aa502a3aadc54d5d1467ef0d75c4b2371bc5edf70d1752c3a0
6
+ metadata.gz: 1f8be238b28e467a960bc8874093eb0ea760984369e477468fb4d4f3e9bb1b2bd8d1c72be5deb8f79461cf2f1a901a08bd2a85b51f54328ab9e561dea5b3c578
7
+ data.tar.gz: f089f17a4dab459683ce2b25771c75c39c0c408574d55321ad5ed69b6116aad9bbff928caae1464ba0a7360376b12d94ba509c8d143f7f5cf594b59b976924bc
@@ -19,7 +19,7 @@ module ActiveRecordApi
19
19
 
20
20
  def create
21
21
  if model.save
22
- redirect_to redirect_url(model), status: :see_other
22
+ render json: model, serializer: serializer
23
23
  else
24
24
  render json: model.errors, status: :unprocessable_entity
25
25
  end
@@ -27,7 +27,7 @@ module ActiveRecordApi
27
27
 
28
28
  def update
29
29
  if model.update(modifiable_params)
30
- redirect_to redirect_url(model), status: :see_other
30
+ render json: model, serializer: serializer
31
31
  else
32
32
  render json: model.errors, status: :unprocessable_entity
33
33
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecordApi
4
4
  module Rest
5
- VERSION = '1.0.28'.freeze
5
+ VERSION = '1.0.29'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_api-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.28
4
+ version: 1.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Full Measure Education
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-27 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler