ocean-rails 2.10.3 → 2.10.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: d1e5e6d3b94515ee373358aae99846d94daff3a8
4
- data.tar.gz: 6b592671bad06a2ba115209512c77cfe3d2f7e9b
3
+ metadata.gz: 194dc8997fa09688ddc4dbeb258de8937ece9d58
4
+ data.tar.gz: 000d7f44e2b7f732bdb90c2c1a6755c623e27345
5
5
  SHA512:
6
- metadata.gz: 3db4f983fd490edf415c983e70a043780de561c0cf4fd4858130c80c020922345e7fd40493685387fe8fbe60a812a42de400b51702191b45475b1dfed6acb9e1
7
- data.tar.gz: aa3e9ad5863a938f9365d59bd79c23bcbac6dda5110526207ef723f566dec9d8cae827794c370a8f16e23b88392d92ebf77399cf990711209dd3989a4840c214
6
+ metadata.gz: c2651cc88e85c8e044a9fd5efcf2425248581f44cde4312663fe5eb55e30129f8d059ae5efec1123cb0cbfcd8ed5331ebb4d1d909f3ecfb235257d1a9550dc89
7
+ data.tar.gz: 7ea95d42c3fe69d5505817cedb047ce0f9afcd35829113ebb53bc7ad7a0e514a1da66f15fbf9b284aaa561c561adcee1cec82b99eb67872f959bc966b12b7b48
@@ -183,7 +183,7 @@ module OceanApplicationController
183
183
  resources = x.dup.collect { |m| render_to_string(partial: m.to_partial_path,
184
184
  locals: {m.class.model_name.i18n_key => m}) }
185
185
  count = resources.count
186
- total_count = x.unscope(:limit, :offset).count
186
+ total_count = x.respond_to?(:unscope) ? x.unscope(:limit, :offset).count : count
187
187
  attrs = {count: count,
188
188
  total_count: total_count
189
189
  }
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.10.3"
2
+ VERSION = "2.10.5"
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: 2.10.3
4
+ version: 2.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 4.0.0
131
+ version: 4.1.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 4.0.0
138
+ version: 4.1.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sqlite3
141
141
  requirement: !ruby/object:Gem::Requirement