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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fbd0c40bb4feaa8525e79415aae490227aa0a0b420c0e665866ced743ae86ef
4
- data.tar.gz: 11f4d4d9b2baf50cc68bbe057c75d3b0dd5af2ccd8622b4ea089525ba5cb7c5b
3
+ metadata.gz: 154c8e191ec03141827fc735f6246f8ff27f786af3c1e4c8bc6e377f1259e491
4
+ data.tar.gz: d47e0bcbf5f6de9d78c59503a0322b0617a8f925ff8f31c2a5b3e5fc91ab974c
5
5
  SHA512:
6
- metadata.gz: 9d1c03adef165d45312f391bca77a13ef41df28cc881b07c13031f75fa031025a883fed242c6a2873217c6f110792ea07712311cf6d88be3c19e5c63c8a40c49
7
- data.tar.gz: e79d5bb415450b7196b0af2223f26fd7a94d8f67292008b0b750af59eccab601ea6430bc83cc097abdfeb9b0bcbfec7185b6ccf6645699fb5b4d6c67fbe952ae
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 paginate(collection, per_page:, url: nil)
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails