active_admin_pagination 0.1.0 → 0.2.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec0d3f99bd4adb8617cbe328925b139af5849a1
|
4
|
+
data.tar.gz: b6f0b7e8008a5c43d5b0b2d52dd8537f4bcc8b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c55060ab73e50b381cc31053f3c08cac8ed1a32c6daa4c23a65932da4f0a5f31f66ecfc962220c47f60d2d6fe2c13e13256dd6bf7ac837d00211a2c3a589043
|
7
|
+
data.tar.gz: 09706e165f386721256950ff4dce1f735a6678effa25ad21e6febd02d10c4531cac489ba2ce4ed80761bdce1c6463b3f65224cd67b41240d16b93b7fe894fc6a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ActiveAdminPagination
|
2
2
|
|
3
|
-
|
3
|
+
Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page' value.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -12,17 +12,15 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install active_admin_pagination
|
18
|
-
|
19
15
|
## Usage
|
20
16
|
|
21
|
-
|
17
|
+
ActiveAdmin.register Post do
|
18
|
+
pagination [10, 50, 100], 50
|
19
|
+
end
|
22
20
|
|
23
21
|
## Contributing
|
24
22
|
|
25
|
-
1. Fork it ( https://github.com/
|
23
|
+
1. Fork it ( https://github.com/timoschilling/active_admin_pagination/fork )
|
26
24
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
25
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
26
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Timo Schilling"]
|
10
10
|
spec.email = ["timo@schilling.io"]
|
11
11
|
spec.summary = %q{Provides a pagination 'per page' interface for ActiveAdmin.}
|
12
|
-
spec.description = %q{Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page'
|
12
|
+
spec.description = %q{Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page' value.}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
require "active_admin_pagination/version"
|
2
2
|
require "active_admin_pagination/engine"
|
3
|
-
require "active_admin_pagination/
|
4
|
-
|
3
|
+
require "active_admin_pagination/resource_dsl"
|
4
|
+
# ensure that ActiveAdmin is loaded
|
5
|
+
require "active_admin"
|
5
6
|
|
6
7
|
module ActiveAdminPagination
|
7
8
|
end
|
8
9
|
|
9
|
-
ActiveAdmin::ResourceDSL.include ActiveAdminPagination::
|
10
|
+
ActiveAdmin::ResourceDSL.include ActiveAdminPagination::ResourceDSL
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timo Schilling
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version: '0'
|
41
41
|
description: Provides a pagination 'per page' interface for ActiveAdmin. It renders
|
42
42
|
a sidebar section with a numeric select and modifies the Controller to use that
|
43
|
-
'per page'
|
43
|
+
'per page' value.
|
44
44
|
email:
|
45
45
|
- timo@schilling.io
|
46
46
|
executables: []
|
@@ -57,7 +57,7 @@ files:
|
|
57
57
|
- app/views/active_admin/base/_paginate.html.erb
|
58
58
|
- lib/active_admin_pagination.rb
|
59
59
|
- lib/active_admin_pagination/engine.rb
|
60
|
-
- lib/active_admin_pagination/
|
60
|
+
- lib/active_admin_pagination/resource_dsl.rb
|
61
61
|
- lib/active_admin_pagination/version.rb
|
62
62
|
homepage: ''
|
63
63
|
licenses:
|