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 +4 -4
- data/lib/openstax/api/roar.rb +6 -4
- data/lib/openstax/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80cc28e28cafca66bb88206472f693711a1c1904
|
4
|
+
data.tar.gz: dd40afb0e2a7507df308b96ebb3abdb0a42c1337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2bba98776f60bf7aafdee2d3a8f24f43f491e663717074779c251305249d60ce12b1298b42dd2ff39103e5275baf95ec68f30c689cc998695877c54803837a
|
7
|
+
data.tar.gz: 6f0f670549f31858279f9748d7ad54a4b8ea7c500172156b87f11ef96eb5313db45e9dcf5b21715d5bbe759d8355a13e29d18173ee83087746a5d534311c1ff0
|
data/lib/openstax/api/roar.rb
CHANGED
@@ -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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
|
data/lib/openstax/api/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|