openstax_api 5.5.3 → 5.5.4

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: 9e5fa790ee7f8cd673ac99386a7db4da3557b1c0
4
- data.tar.gz: 29439fff53098f5ec45503f488d96cdf08f9bf2c
3
+ metadata.gz: 80cc28e28cafca66bb88206472f693711a1c1904
4
+ data.tar.gz: dd40afb0e2a7507df308b96ebb3abdb0a42c1337
5
5
  SHA512:
6
- metadata.gz: 35a56586e12faf121ed6f9f1607080a0301b52f1241352ce9672285947646426ce6db55b33e681507eb9f6956f752d555b03d38ea292c1f3c350671f4ed5effa
7
- data.tar.gz: fb87fc627a3fcfa84f5c009cf921fd6587897b4c6ceafdd492a623887ee10a81dddc0de24f932b54a30b8e0a447220a8a2a737150e2a3ae79659d68e0efd771b
6
+ metadata.gz: 1f2bba98776f60bf7aafdee2d3a8f24f43f491e663717074779c251305249d60ce12b1298b42dd2ff39103e5275baf95ec68f30c689cc998695877c54803837a
7
+ data.tar.gz: 6f0f670549f31858279f9748d7ad54a4b8ea7c500172156b87f11ef96eb5313db45e9dcf5b21715d5bbe759d8355a13e29d18173ee83087746a5d534311c1ff0
@@ -63,10 +63,12 @@ module OpenStax
63
63
  def standard_destroy(model)
64
64
  OSU::AccessPolicy.require_action_allowed!(:destroy, current_api_user, model)
65
65
 
66
- if model.destroy
67
- head :no_content
68
- else
69
- render_api_errors(model.errors)
66
+ model.with_lock do
67
+ if model.destroy
68
+ head :no_content
69
+ else
70
+ render_api_errors(model.errors)
71
+ end
70
72
  end
71
73
  end
72
74
 
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "5.5.3"
3
+ VERSION = "5.5.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.3
4
+ version: 5.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-28 00:00:00.000000000 Z
12
+ date: 2015-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails