ocean-rails 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: 3564e9ecab8263f574cc58a50ddb45985435975b
4
- data.tar.gz: 2361e8081257e8227b6ce525cf590057e5ed21fe
3
+ metadata.gz: 9637983e267669c5b662b9bf37dfb1b07c414e11
4
+ data.tar.gz: 13378c3e4654918727df6ac2799a32205e33b054
5
5
  SHA512:
6
- metadata.gz: 23bdc233ec16f45c0d87c383d887f03500ed1de281625b088440d71ee4ccb2648a2b022bb66295a705667cec9322e1433e1b4fd70d8d6980ddee92197c41a786
7
- data.tar.gz: cf7425b671b3710519cabda52c29483b3014b5bbf8026b4af80189fa48cfe0fb247a5a737f805b7a39a3e6bd08f971f19b22cff64a042c820ffb4e6c87748462
6
+ metadata.gz: e5255bd7807561486a10dbc7064b7bc653c0a0bcb9c186d14edfab72bbea495709efd233bde18f2259444c00f91704b2206fa82aa18a944b0a4e55335cc1348f
7
+ data.tar.gz: e85ac61eb38c0ab5f8594eef0c9eb03d86dbcb911ff77af5f6a93fe136b7ed342d596c7bacb24919985add39db1f9257085157b2bdeac5ad8c440743505b29fe
@@ -174,7 +174,8 @@ module OceanApplicationController
174
174
  count = resources.count
175
175
  total_count = x.respond_to?(:unscope) ? x.unscope(:limit, :offset).count : count
176
176
  attrs = {count: count,
177
- total_count: total_count
177
+ total_count: total_count,
178
+ resource_type: x.table_name.singularize # We could also go through the class (better)
178
179
  }
179
180
  links = {}
180
181
  if href
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "5.5.3"
2
+ VERSION = "5.5.4"
3
3
  end
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: 5.5.3
4
+ version: 5.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus