datagrid 1.8.0 → 1.8.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: 6b7756de5445c9c99d265a897b609b9f3dcf6dbf0b03e32455ca96518bf01eea
4
- data.tar.gz: 7f748c1a7075331672e749d582145deacc1d38977ada1770b6d7b548d9bb17c9
3
+ metadata.gz: 701bbc42a7501aa45a10d3899b92c9d1f745dae75b0a7eb219db1c339c182cb8
4
+ data.tar.gz: cb309f1b9f08b3c1455c1b8650cf222867ba68721a9eb344b310bc5d7d5712e4
5
5
  SHA512:
6
- metadata.gz: 8acee3003f7a9e63ec80808221667fa530f74d882c88d06ce20855b97bf75ec806a6eb5ddf89c9f47044d943238d74c33fcfd290c78d8d4e6e31a3081f4f6e83
7
- data.tar.gz: 54d4cb553c0a82068d905e8367bffb18298d215b3a0ae09be4b09fa2f77dfe1cc299e019c080d3b689d897f2f38dba217bdef5200284bebadc8ccb1b9ce83644
6
+ metadata.gz: 6bac4684420163514873a8a31bd06d182d216c8fff27f61d57368d605165838021a33d8603596ee04aee02e2b97a130308553bf36a8b6db0717f363b4c5ad472
7
+ data.tar.gz: 4f6190ffaadbf77d0bc39ca632de5df1bcd2ef716bff40a5074b48f710d8b2257e0a95759fe8465a756819deb5e9202abb92a64783eae2bd3804d6c5ddf02e8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## master
2
2
 
3
+ ## 1.8.1
4
+
5
+ * Prioritize `input_options` over generated by default. [#319](https://github.com/bogdan/datagrid/pull/319)
6
+
3
7
  ## 1.8.0
4
8
 
5
9
  * Support `input_options: {type: "textarea"}` as `<textarea/>` tag
@@ -10,12 +10,8 @@ module Datagrid
10
10
  # * <tt>text_field</tt> for other filter types
11
11
  def datagrid_filter(filter_or_attribute, partials: nil, **options, &block)
12
12
  filter = datagrid_get_filter(filter_or_attribute)
13
- self.send(
14
- filter.form_builder_helper_name, filter,
15
- **filter.input_options,
16
- **add_html_classes(options, filter.name, datagrid_filter_html_class(filter)),
17
- &block
18
- )
13
+ options = add_html_classes({**filter.input_options, **options}, filter.name, datagrid_filter_html_class(filter))
14
+ self.send( filter.form_builder_helper_name, filter, **options, &block)
19
15
  end
20
16
 
21
17
  # @param filter_or_attribute [Datagrid::Filters::BaseFilter, String, Symbol] filter object or filter name
@@ -1,3 +1,3 @@
1
1
  module Datagrid
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datagrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-12 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties