corn_starch 1.3.23 → 1.3.24
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: 1df55e5a2738ff7a169c5c3f586a3e86370be762
|
4
|
+
data.tar.gz: fbf926aa4e01ba2f5d3d42a678a93cd1640199a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0064a2be37d361bd0141de4a7091c04cbbfeadff40ef026d5075eb58b77bdf40bcd5151564d4ede04f0d6fee034af5a906c87e9a1c1df6e7ba362b39fb17e9
|
7
|
+
data.tar.gz: 033ffc35c5d2e29891630c2318ebaa797fe31c0d4c272f44b73515e7a923a5eb109b8fcf683c9b8ef4fb4e3160cde32877723782354b8064b800a4cba2e43fe0
|
@@ -75,11 +75,6 @@ module CornStarch
|
|
75
75
|
@infiniscroll ||= {}
|
76
76
|
@infiniscroll[:params] ||= {}
|
77
77
|
|
78
|
-
# Compute Next
|
79
|
-
@infiniscroll[:next] = (@pagination[:current] < (@pagination[:pg_count] - 1)) ? @pagination[:current] + 1 : :none
|
80
|
-
|
81
|
-
puts "=========== infiniscroll : #{@infiniscroll[:next]} / #{@pagination[:pg_count]}"
|
82
|
-
|
83
78
|
# Set Search
|
84
79
|
@infiniscroll[:params][:search] = params[:search] if params[:search]
|
85
80
|
|
@@ -124,6 +119,14 @@ module CornStarch
|
|
124
119
|
|
125
120
|
# Render InfiniScroll Data
|
126
121
|
def infiniscroll_data template
|
122
|
+
|
123
|
+
# Compute Next
|
124
|
+
@infiniscroll[:next] = (@pagination[:current] < (@pagination[:pg_count] - 1)) ? @pagination[:current] + 1 : :none
|
125
|
+
|
126
|
+
# DEBUG
|
127
|
+
puts "=========== infiniscroll : #{@infiniscroll[:next]} / #{@pagination[:pg_count]}"
|
128
|
+
|
129
|
+
# Produce JSON
|
127
130
|
{ json: { next: @infiniscroll[:next], content: render_to_string(template, layout: false) } }
|
128
131
|
end
|
129
132
|
|
data/lib/corn_starch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corn_starch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eresse
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|