ocean-rails 1.22.0 → 1.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/ocean_resource_controller.rb +2 -2
- data/lib/ocean/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: c3a42a43e7f34158de4bfb09d4f2d90c81d44eb0
|
4
|
+
data.tar.gz: 69db544e332db4166ae928f6c9ceccb65e841e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4caa4fca1975ebd2d6fc93c58e174694e3616943718ad48db410ead18bb3fd0f73b45c4612abd18264e3e5f2818b1da09f876e9271f9c2ce23026e1dbcd4646a
|
7
|
+
data.tar.gz: c955925c5de020c0e58b3a723794f597f0e981aec00d3c6fcb3b7f2b59e252bb5c5334616cf6f8ddea84c85acb8ac066df81680f8962766c14eceea091262042
|
@@ -21,12 +21,12 @@ module Ocean
|
|
21
21
|
if defined? ActiveRecord
|
22
22
|
rescue_from ActiveRecord::RecordNotUnique,
|
23
23
|
ActiveRecord::StatementInvalid,
|
24
|
-
OceanDynamo::
|
24
|
+
OceanDynamo::RecordNotUnique do |x|
|
25
25
|
render_api_error 422, "Resource not unique"
|
26
26
|
end
|
27
27
|
|
28
28
|
rescue_from ActiveRecord::StaleObjectError,
|
29
|
-
OceanDynamo::
|
29
|
+
OceanDynamo::StaleObjectError do |x|
|
30
30
|
render_api_error 409, "Stale #{x.record.class.name}"
|
31
31
|
end
|
32
32
|
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.
|
4
|
+
version: 1.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|