katalyst-tables 3.11.2 → 3.11.3
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: f1a656d6c4afdbaaa9775b017ece93c5a1ed47f1fa23b6a629ee902ea6862de8
|
|
4
|
+
data.tar.gz: 6ae825a285b001c1a9fdb88f4b5611a1cc7a87273d13819bcf863f3c9c3a4ed6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24ff7144511a36aac499f10f035eea0fd5c734c0f98e21caf7094e48902796d24ad5f8e30cc14f0f0c8e3c3a68ae7336f732fb974a038b541872a9b4faa8e8cc
|
|
7
|
+
data.tar.gz: c8e1be4b57246e7bf3cdd988aeb812b34e95c518c8176f4931040cf53ceb1351f23f8bdfd7b89239bc5a2b139447336e22fa9d7d88055a206ff92f15177160ce
|
|
@@ -5,6 +5,11 @@ module Katalyst
|
|
|
5
5
|
module Collection
|
|
6
6
|
class Config
|
|
7
7
|
attr_accessor :paginate, :sorting
|
|
8
|
+
|
|
9
|
+
def initialize(parent = nil)
|
|
10
|
+
@paginate = parent&.paginate&.dup
|
|
11
|
+
@sorting = parent&.sorting&.dup
|
|
12
|
+
end
|
|
8
13
|
end
|
|
9
14
|
|
|
10
15
|
module Core # :nodoc:
|
|
@@ -18,8 +23,9 @@ module Katalyst
|
|
|
18
23
|
include Reducers
|
|
19
24
|
|
|
20
25
|
class_methods do
|
|
21
|
-
def
|
|
22
|
-
|
|
26
|
+
def inherited(subclass)
|
|
27
|
+
subclass.config = Config.new(config)
|
|
28
|
+
super
|
|
23
29
|
end
|
|
24
30
|
|
|
25
31
|
def permitted_params
|
|
@@ -53,6 +59,7 @@ module Katalyst
|
|
|
53
59
|
end
|
|
54
60
|
|
|
55
61
|
included do
|
|
62
|
+
class_attribute :config, instance_accessor: false, default: Config.new
|
|
56
63
|
attr_accessor :items, :unscoped_items
|
|
57
64
|
|
|
58
65
|
delegate :each, :count, :empty?, to: :items, allow_nil: true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: katalyst-tables
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.11.
|
|
4
|
+
version: 3.11.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katalyst Interactive
|
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
182
|
- !ruby/object:Gem::Version
|
|
183
183
|
version: '0'
|
|
184
184
|
requirements: []
|
|
185
|
-
rubygems_version:
|
|
185
|
+
rubygems_version: 4.0.3
|
|
186
186
|
specification_version: 4
|
|
187
187
|
summary: HTML table generator for Rails views
|
|
188
188
|
test_files: []
|