corn_starch 1.7.15 → 1.7.16
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b51967e5cfbf341b0ca29de457924419a7dadc3b
|
4
|
+
data.tar.gz: f732ad4ae4e39ee1b680d996a6f5ef4cf933821a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78dae83d4ea1fc9f6346961fe8163270e7585cca41ca57fa037548c0964f38d57076386b70a46a413453d1a96e360172ca3c63f55cd62b1a8f72e4c9affbebe0
|
7
|
+
data.tar.gz: 07fa85b7d5cc48bbb47cec2a00dc390651ca1b7b8c3c2ae290c8a3247c9ff14b02bbfc10935e2087db4deb9f8c67d379ed75c658b5f2f326d6313bbeb6f57ef2
|
@@ -132,13 +132,14 @@ module CornStarch
|
|
132
132
|
end
|
133
133
|
|
134
134
|
# Render InfiniScroll Data
|
135
|
-
def infiniscroll_data template
|
135
|
+
def infiniscroll_data template, params = {}
|
136
136
|
|
137
137
|
# Compute Next
|
138
138
|
@infiniscroll[:next] = (@pagination[:current] < (@pagination[:pg_count] - 1)) ? @pagination[:current] + 1 : :none
|
139
139
|
|
140
140
|
# Produce JSON
|
141
|
-
|
141
|
+
params[:layout] = false
|
142
|
+
{ json: { next: @infiniscroll[:next], content: render_to_string(template, params) } }
|
142
143
|
end
|
143
144
|
|
144
145
|
# Universal Search
|
data/lib/corn_starch/version.rb
CHANGED