bullet_train 1.7.3 → 1.7.4
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 +4 -4
- data/docs/field-partials/buttons.md +3 -3
- data/lib/bullet_train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45ac086294fdb4fffcde6e7b385b2466303cd8f5d57f5ad3668867ad0809bbea
|
|
4
|
+
data.tar.gz: 423f3f4b4c0ab2d7187f3db297b7d61a7fb9037757a00b76d687954fa925ef90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 011e90e260b008649eae455710b039788c9b4f5b5ef5fa2f5d629f60babc9d14289fe212bdb8fa254f4a6c9cec1f7403e23c838814501adff3a490314320cd08
|
|
7
|
+
data.tar.gz: 5e858238daa941082b52640ebb1c7f2165146624c6ee00aaa820d47e4f7bd356d4bc4fb9018f91f4a9802d95608d330cc9c56190c56eb07621fb1cd94cc8e80e
|
|
@@ -25,11 +25,11 @@ en:
|
|
|
25
25
|
|
|
26
26
|
## Generate Buttons Programmatically
|
|
27
27
|
|
|
28
|
-
You can generate the available buttons using a collection of database objects by passing the `
|
|
28
|
+
You can generate the available buttons using a collection of database objects by passing the `button_field_options` option like so:
|
|
29
29
|
|
|
30
30
|
```erb
|
|
31
31
|
<%= render 'shared/fields/buttons', form: form, method: :category_id,
|
|
32
|
-
|
|
32
|
+
button_field_options: Category.all.map { |category| [category.id, category.label_string] } %>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Allow Multiple Button Selections
|
|
@@ -38,7 +38,7 @@ You can allow multiple buttons to be selected using the `multiple` option, like
|
|
|
38
38
|
|
|
39
39
|
```erb
|
|
40
40
|
<%= render 'shared/fields/buttons', form: form, method: :category_ids,
|
|
41
|
-
|
|
41
|
+
button_field_options: Category.all.map { |category| [category.id, category.label_string] }, options: {multiple: true} %>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Dynamically Updating Form Fields
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bullet_train
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-05-
|
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: standard
|