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: 0bd9e96f45d0688906a5c5efc81b472b561c2928
4
- data.tar.gz: 6d7390652a527ee826f08c73ddb50008f263a6e2
3
+ metadata.gz: 1df55e5a2738ff7a169c5c3f586a3e86370be762
4
+ data.tar.gz: fbf926aa4e01ba2f5d3d42a678a93cd1640199a6
5
5
  SHA512:
6
- metadata.gz: b62d8714d75b5ac23c09750afc17398659f5c541e9d502ae1350118d28864c5111dda5a5f54aec667f27b6f0979b18482ad2a23308453b8f1f0dd18a25370e4a
7
- data.tar.gz: 3724ecd92838702cf68fbbe71a4c14c46ab7c1734b707d6a41475fe0ad8fbbba85f5b342c17b082bf601d1aa9cb48730d5d45e9a0853810d41dd7a558bf6817d
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
 
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.3.23'
2
+ VERSION = '1.3.24'
3
3
  end
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.23
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-03 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler