bullet_train 1.7.3 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/field-partials/buttons.md +3 -3
- data/docs/upgrades/notable-versions.md +1 -1
- 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: 61ac6dfc22d6d86ee7fd48ff56ddf2e97303407dd2ef6d9ff86388b4978fe623
|
4
|
+
data.tar.gz: a3f4d21607257850fb35df26f9fa8213087156a6b9c43666e2c226c88a7c033a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5691e07b71a1a0b5bea6b4d12f790cb6d5af271bafb222e6f4c570eedd8cfab7fca871c4ccbc2d748e8d0c58763f351c77716dc1836b1e4d99025dcb2c36ac
|
7
|
+
data.tar.gz: 88847c77fdff62fd70f19fbb8dcd3f94c7fc8c9ea1ed06a2e16cc1964dfdd8f3b143be00e29d719221060b3ae1b0b874c83c747d590c0b51c81a3ec645e9e5af
|
@@ -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
|
@@ -9,7 +9,7 @@ you merge in version 1.5.0. Doing this should reduce the chances for merge confl
|
|
9
9
|
To use the helper to modify your tests run this in a console (after updating to v1.4.11):
|
10
10
|
|
11
11
|
```
|
12
|
-
bin/
|
12
|
+
bin/updates/system_tests/use_device_test
|
13
13
|
```
|
14
14
|
|
15
15
|
Then you should:
|
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.5
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|