deep_unrest 0.1.13 → 0.1.14

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: b494e91d4bac219fc3c61ba56130f8d8e7507257
4
- data.tar.gz: 8e2ed2195d708dc81d7aea11c777e655625109cb
3
+ metadata.gz: f6373c8bffc0e5343d0a7dfd2597b8a626dc0090
4
+ data.tar.gz: 051046bfa0f54fce20c5f77e8b8ed5c4ae2326fe
5
5
  SHA512:
6
- metadata.gz: 186c1ecc69f2a9c151d8c3025337c16a542b2ddf088422d0ac0af17d64e4c8ae2db05cd98be449babcbb15acd90be8c463cd2c513e951fc23d2096d584d19685
7
- data.tar.gz: 86639b2bca4cc0c961497451f9074a0ed893161ae7f26e6a15ac7b567786ae2fa61d4ae990fcee5781baaea083c34aaafd873b98760af8821212ce196fd3429f
6
+ metadata.gz: 1463975f553a56c5eacf384642d2a89fe2e5525efd0fe0054834601d7b0790dce399396ef41701e5f46d7e72b71ab0fc70f571743f8a9eb4390f3801df07a676
7
+ data.tar.gz: aa71277e735edc51753ebea6047c375c9b4cf34f43df818ca4a75867d4ead2e812aba5f019ba8a3433000ed5cfa73534774988ddc4d23a874d3540356cabca95
@@ -24,7 +24,7 @@ module DeepUnrest
24
24
 
25
25
  def update
26
26
  redirect = allowed_params[:redirect]
27
- data = repair_nested_params(allowed_params[:data])
27
+ data = repair_nested_params(allowed_params)[:data]
28
28
  redirect_replace = DeepUnrest.perform_update(data,
29
29
  current_user)
30
30
  resp = {}
@@ -36,8 +36,6 @@ module DeepUnrest
36
36
  render json: err.message, status: 405
37
37
  rescue DeepUnrest::Conflict => err
38
38
  render json: err.message, status: 409
39
- ensure
40
- response.headers.merge! update_auth_header
41
39
  end
42
40
 
43
41
  def current_user
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepUnrest
4
- VERSION = '0.1.13'
4
+ VERSION = '0.1.14'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-14 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails