effective_bootstrap 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_bootstrap_helper.rb +4 -1
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 154c8e191ec03141827fc735f6246f8ff27f786af3c1e4c8bc6e377f1259e491
|
4
|
+
data.tar.gz: d47e0bcbf5f6de9d78c59503a0322b0617a8f925ff8f31c2a5b3e5fc91ab974c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b335ec07ef0d394874f75c86871ccdc098b7ae1596635d8615b8277438669145667baaf199d202955fce5b809a1eca4506d54895482f798b480c40b7c871dc53
|
7
|
+
data.tar.gz: 169bf98da00a9e65fa1f9edeab8921b5ec74ad654f2a344bcb3bd43f3e2a1dcf2cbfc16e0c2265c909cf720205104bc9d95b91f9994da58e68c1e7583805cbfe
|
@@ -197,7 +197,7 @@ module EffectiveBootstrapHelper
|
|
197
197
|
# Add this to your view
|
198
198
|
# %nav= paginate(@posts, per_page: 10)
|
199
199
|
#
|
200
|
-
def
|
200
|
+
def bootstrap_paginate(collection, per_page:, url: nil)
|
201
201
|
raise 'expected an ActiveRecord::Relation' unless collection.respond_to?(:limit) && collection.respond_to?(:offset)
|
202
202
|
|
203
203
|
count = collection.limit(nil).offset(nil).count
|
@@ -229,6 +229,9 @@ module EffectiveBootstrapHelper
|
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
232
|
+
# Let Kaminari override this method.
|
233
|
+
alias_method(:paginate, :bootstrap_paginate) unless (respond_to?(:paginate) || defined?(Kaminari))
|
234
|
+
|
232
235
|
# Tabs DSL
|
233
236
|
# Inserts both the tablist and the tabpanel
|
234
237
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|