ocean-rails 2.0.4 → 2.0.5
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_application_controller.rb +3 -3
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31cd0f03d31ec32c34db16825b1a8d72a4202f33
|
4
|
+
data.tar.gz: d7274913acdc3d9f5a3c1599eab958ff4a55b80f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789accb15b8d2e6e83f3fc316050ac7d1baa53bc583e9fafc70926935ea09e641887447ee14dee818217e8e59ef548eded59113fb9ee8c058833374d26ee0fda
|
7
|
+
data.tar.gz: f33b65bfafec01de07e6a6abe9dfc61d65b9deed55aee7780adb4a19c1b81bed41288c3375fd8a02c9b9fbd264cd5f7147d71bf3e8811d57eb828c19f3905434
|
@@ -174,10 +174,10 @@ module OceanApplicationController
|
|
174
174
|
end
|
175
175
|
return
|
176
176
|
else
|
177
|
-
resources = x.collect { |m| render_to_string(partial: m.to_partial_path,
|
177
|
+
resources = x.dup.collect { |m| render_to_string(partial: m.to_partial_path,
|
178
178
|
locals: {m.class.model_name.i18n_key => m}) }
|
179
|
-
attrs = {count: resources.count
|
180
|
-
|
179
|
+
attrs = {count: resources.count,
|
180
|
+
total_count: x.unscope(:where, :limit, :offset).count
|
181
181
|
}
|
182
182
|
links = {}
|
183
183
|
if href
|
data/lib/ocean/version.rb
CHANGED