corn_starch 1.7.17 → 1.7.18

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: a06a87d59af91042fc3b6f42ccf8d395c29d7dc4
4
- data.tar.gz: ad8f5f0893d2637c52e9d7794d205d3370b1f28e
3
+ metadata.gz: e94b84d9632df22c33877b7e40ce8e289b7da0df
4
+ data.tar.gz: 30d3002f0fe8233ca741e2aa00696bc7c0f89274
5
5
  SHA512:
6
- metadata.gz: 944bd49bf69f90c1656c17014b06f64e24fed549f3160db54ed89faaa99846ef6dc7a7660bd8615f99d17b0e3cbeb210517cbf8c7125dd3fdff16619b735bbf0
7
- data.tar.gz: c85002ab2b707de22fab424a0bec69e63a805371ee50734955bd88ba7f11677f8eac810de34cb3759b22630168eaec3e4be11abeae47b82867c6573f3f89ac82
6
+ metadata.gz: 2d28e6490f83dbfc3623736afc3c1e220389acef4bd3a739bd9e5fa6d4fe5c3c1e81ed2c07ddf4f989f4f5aab0a85d0b5a10ea4bc59cbf4b8819e4900f9ff327
7
+ data.tar.gz: 8ac848352b9fe806e8b6d5b2914800a33ebd7f5b0c266dc67db20169010961aefc79ac04e998227beeb190fc88119823589f46eff34d99b3e0eb1696d59944cb
@@ -8,7 +8,7 @@ module CornStarch
8
8
  module InfiniscrollHelper
9
9
 
10
10
  # InfiniScroll Container
11
- def infiniscroll_container id, target, n = 1, &block
11
+ def infiniscroll_container id, target, extra_args = nil, n = 1, &block
12
12
 
13
13
  # Prep Args
14
14
  first = true
@@ -26,6 +26,8 @@ module CornStarch
26
26
  first = false
27
27
  end
28
28
 
29
+ args = args + (first ? '?' : '&') + extra_args if extra_args
30
+
29
31
  # Produce Container
30
32
  div_tag id: id, class: 'infiniscroll-container', 'infiniscroll-trgt' => target, 'infiniscroll-args' => args, 'infiniscroll-next' => n, 'infiniscroll-margin' => CORNSTARCH_CONF[:infiniscroll][:margin], &block
31
33
  end
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.7.17'
2
+ VERSION = '1.7.18'
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.17
4
+ version: 1.7.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse