ocean-rails 1.22.4 → 1.22.5

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: 020520d54c8717cd0d5bf70d2c4d4860fdf08cd2
4
- data.tar.gz: 4b3dbd8fed061ea0bd45a03f1881fa7ba8d94199
3
+ metadata.gz: 2457904b789004d0cac927136c86dcc984f615a9
4
+ data.tar.gz: 1a6dc9e959d0d11c2274ac79ac429e234585bb7d
5
5
  SHA512:
6
- metadata.gz: f41324e5b2adc4a5deaec7792b7c086c337ea6b6f546bae445a2a52776a1f04467320415964b3e1075768042bba5cb1185d4e0a5dcea0f1d8c479f9f690bee94
7
- data.tar.gz: ceba6e5bc72d5987cedb2e0bba8515460adf8c0556324c9681fe2acdfcd3bbe3e9eb508b51c577f58bbdae6e1685db71024cf0b400c1e3fd2b8b9a42949bf77c
6
+ metadata.gz: b0e117ef9959e411995d4c2a13c51892fdb3046f9dc617029a9df47a9466859cb534b1b50adad33be176335d1d11d5c0c850a2a81f2c0fc5ed7f137b8ac3c012
7
+ data.tar.gz: eb1b5186dcb073420612f5622307da96371540a545f7f511844a35a721ee405fff530d73e1aab3874ff8f5bab1c1a672b7ed32de25cd2464140e2c7bf7eafd2c
@@ -165,7 +165,7 @@ module OceanApplicationController
165
165
  # for resources creates a partial in the proper location.
166
166
  #
167
167
  def api_render(x, new: false)
168
- if !x.is_a?(Array) && !x.is_a?(ActiveRecord::Relation)
168
+ if !x.is_a?(Array) && !(defined?(ActiveRecord) && x.is_a?(ActiveRecord::Relation))
169
169
  partial = x.to_partial_path
170
170
  if new
171
171
  render partial: partial, object: x, status: 201, location: x
@@ -58,5 +58,5 @@ module Ocean
58
58
  end
59
59
 
60
60
 
61
- ActiveRecord::Base.send :include, Ocean::OceanResourceModel if defined? ActiveRecord
62
- OceanDynamo::Base.send :include, Ocean::OceanResourceModel if defined? OceanDynamo
61
+ ActiveRecord::Base.send(:include, Ocean::OceanResourceModel) if defined? ActiveRecord
62
+ OceanDynamo::Base.send(:include, Ocean::OceanResourceModel) if defined? OceanDynamo
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.22.4"
2
+ VERSION = "1.22.5"
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.4
4
+ version: 1.22.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson