ocean-rails 1.22.2 → 1.22.3

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: ae76a813526fd9e589aae072a88b81869bcef2f2
4
- data.tar.gz: 699fc1d9b6813bf369441b27a66a97c6b85e54a2
3
+ metadata.gz: 3428a7d30c57bcd52d9072e7b79861f8a2a65714
4
+ data.tar.gz: 3297e0355f6c5b20953c9a5598dda840bc11dfeb
5
5
  SHA512:
6
- metadata.gz: 225320d7dcec73b64e9bae71b37b2938b7c690842b1bdb800fce89659fac9ee939e31fe8ba2cf75df972d69fa10e1d633b66366a99f2e70f10a063f0ad60ea11
7
- data.tar.gz: ed09ac4816da7c799f00abb0ca493ceed540a877575455bc5f7ab3e82e8ce51d85c235a887cf1c9a2a0c56304c55adcfd678b9348f0545356d4eadd7e3e27f53
6
+ metadata.gz: dc596c4d98a1c062da61ae6f63c8b711606b2d599fc73f33eecf8169feb963472ae694f1be83f31c65116c4c6304d804326e90586f42537b342ab67c37b1b069
7
+ data.tar.gz: aa885f87efa2b93ac915c6c69ab8fe96ef9d814e279d9694d9d2468c1afe283e602cf92d29d3cf89ac8929a0acff7795dec9b667b1659a1ba4c4921461f69d6c
@@ -19,19 +19,19 @@ module Ocean
19
19
 
20
20
  included do
21
21
  if defined? ActiveRecord
22
- rescue_from ActiveRecord::RecordNotUnique,
23
- ActiveRecord::StatementInvalid,
24
- OceanDynamo::RecordNotUnique do |x|
22
+ rescue_from "ActiveRecord::RecordNotUnique",
23
+ "ActiveRecord::StatementInvalid",
24
+ "OceanDynamo::RecordNotUnique" do |x|
25
25
  render_api_error 422, "Resource not unique"
26
26
  end
27
27
 
28
- rescue_from ActiveRecord::StaleObjectError,
29
- OceanDynamo::StaleObjectError do |x|
28
+ rescue_from "ActiveRecord::StaleObjectError",
29
+ "OceanDynamo::StaleObjectError" do |x|
30
30
  render_api_error 409, "Stale #{x.record.class.name}"
31
31
  end
32
32
 
33
- rescue_from ActiveRecord::RecordInvalid,
34
- OceanDynamo::RecordInvalid do |x|
33
+ rescue_from "ActiveRecord::RecordInvalid",
34
+ "OceanDynamo::RecordInvalid" do |x|
35
35
  render_validation_errors x.record, except: ocean_resource_controller_no_validation_errors_on
36
36
  end
37
37
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.22.2"
2
+ VERSION = "1.22.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.2
4
+ version: 1.22.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson