will_paginate_bootstrp 0.2.6 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92a91975867d22d43c9eaa95a3f335ada735bffa06e5ef2f58a3682b03c271fb
|
4
|
+
data.tar.gz: 03ed72070dee6d67eec0b0e464e5e1a1865f734233feb2ec862e16799183e7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6621f5a8d054778a8ba7487e43267b8bbe82c77218328df50dd13f2e6b0b490ef35c7055358306fc84ffebeb8e71c4e2a0f8d23210649f231aa2c0aa4ce785c
|
7
|
+
data.tar.gz: 34d8b4e77eaf6668ac23995c899585f2f54b05a18d21b5d4b0b24a9cacabf504144401a1d4def050e43df2c03f89c22a62c4cd67aaa9d6df26e663d4d04483d8
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'will_paginate/view_helpers/action_view'
|
4
|
+
require 'will_paginate_bootstrp/renderer'
|
5
|
+
|
6
|
+
module WillPaginate
|
7
|
+
module ActionView
|
8
|
+
def will_paginate(collection = nil, options = {})
|
9
|
+
options, collection = collection, nil if collection.is_a? Hash
|
10
|
+
collection ||= infer_collection_from_controller
|
11
|
+
|
12
|
+
options = options.symbolize_keys
|
13
|
+
options[:renderer] ||= WillPaginateBootstrp::Renderer
|
14
|
+
options[:list_classes] ||= ['pagination']
|
15
|
+
options[:previous_label] ||= WillPaginateBootstrp::Renderer::PREVIOUS_LABEL
|
16
|
+
options[:next_label] ||= WillPaginateBootstrp::Renderer::NEXT_LABEL
|
17
|
+
|
18
|
+
super(collection, options)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_bootstrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Demianchuk
|
@@ -24,13 +24,14 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.3.1
|
27
|
-
description:
|
28
|
-
|
27
|
+
description: will_paginate_bootstrp provides Twitter Bootstrap pagination like design
|
28
|
+
on top of will_paginate gem
|
29
29
|
email: sergeydemjanchyk@gmail.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- config/initializers/will_paginate.rb
|
34
35
|
- lib/will_paginate_bootstrp.rb
|
35
36
|
- lib/will_paginate_bootstrp/renderer.rb
|
36
37
|
- lib/will_paginate_bootstrp/version.rb
|
@@ -56,5 +57,5 @@ requirements: []
|
|
56
57
|
rubygems_version: 3.0.3
|
57
58
|
signing_key:
|
58
59
|
specification_version: 4
|
59
|
-
summary: Integrates
|
60
|
+
summary: Integrates Twitter Bootstrap pagination component with will_paginate gem
|
60
61
|
test_files: []
|