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: 627930a2e5bcee23380ee0ec35802890a3ccd74f
4
- data.tar.gz: 1f1a821af1efcd92ff5a73b0aca76cbe6618023c
3
+ metadata.gz: b51967e5cfbf341b0ca29de457924419a7dadc3b
4
+ data.tar.gz: f732ad4ae4e39ee1b680d996a6f5ef4cf933821a
5
5
  SHA512:
6
- metadata.gz: fd8a444e15182560434eb98013aae1a9956abb8b579b8de207b5abd6c8dad93a0cd91ff09f92aee361ac71d72bf7ddc404e162c73da8ffd538fab3b340f2da66
7
- data.tar.gz: b8aadca11536b8d8860cc0468642fef2f826cfeb64e8e7b5dfa06d5118f233a600908740e0e68231a51a789539224393f2cbd6542654c3b03f4d316da1ed13fc
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
- { json: { next: @infiniscroll[:next], content: render_to_string(template, layout: false) } }
141
+ params[:layout] = false
142
+ { json: { next: @infiniscroll[:next], content: render_to_string(template, params) } }
142
143
  end
143
144
 
144
145
  # Universal Search
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.7.15'
2
+ VERSION = '1.7.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.15
4
+ version: 1.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse