katalyst-tables 3.3.0 → 3.3.1

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: 99f68d6b448fc719638002da3066e01c14a1574b544748ecbc4a0b9e78546fa0
4
- data.tar.gz: 43aeb38f258254e5e89462354cbb2be64960a09c377ef2ff7830512f6306815b
3
+ metadata.gz: 1431a1666522842053ab70ae3da4f2610bf6fd819be4fe289d992f17c78e0d87
4
+ data.tar.gz: be2d0612b1620a052c58e6115b46e388ce3b54bd732d86ba45681bc679e19d68
5
5
  SHA512:
6
- metadata.gz: b06c5ee8b89b3c3faed076018a54a66782ab729ea5790c1dae276d8f308e5a72e3843e7b7e7815e549f3dbe66e68225893f8bb9375911b79676e64d06e8a7e0a
7
- data.tar.gz: 052ca42441d1f7343700bc0dc6adaca48205470962964c27c82c1a3af3450ab50a38357d46cd950b91b5191f1dfd1ad063471b58fdeb5983b0e7a3a6bc598561
6
+ metadata.gz: 9d04228e59216901da2268c3aac3dc6076f623fca6c61121a896b215d278265ae2a2fc5f06df97652be02a53a409eefe08fa7d21892a8d28c5d5457efe90a138
7
+ data.tar.gz: 25adbd55a147762f4a28aea24f194032eef8e1c27167bfca66a40bd48055b7a018235c94bbe95d6b1a7fe4d49d62d9f5c402034936a0755b394f923cab3668dc
@@ -86,7 +86,9 @@ module Katalyst
86
86
  end
87
87
 
88
88
  def filters
89
- changes.except("sort", "page", "query").transform_values(&:second)
89
+ changes
90
+ .select { |k, _| self.class._default_attributes[k].type.filterable? }
91
+ .transform_values(&:second)
90
92
  end
91
93
 
92
94
  def model
@@ -17,10 +17,11 @@ module Katalyst
17
17
  end
18
18
 
19
19
  included do
20
- attribute :query, :query, default: ""
20
+ attribute :q, :query, default: ""
21
+ alias_attribute :query, :q
21
22
 
22
23
  # Note: this is defined inline so that we can overwrite query=
23
- def query=(value)
24
+ def q=(value)
24
25
  query = super
25
26
 
26
27
  Parser.new(self).parse(query)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katalyst-html-attributes