rails_bootstrap_form 0.8.1 → 0.8.2
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/CHANGELOG.md +18 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/rails_bootstrap_form/bootstrap_form_builder.rb +2 -1
- data/lib/rails_bootstrap_form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e02719566479d775dbcff16d248f1a2498c34a71000c192202d45656b5412343
|
|
4
|
+
data.tar.gz: 26b36857096e847a7c2fc43c83ff3dff3b49f76d6d3b053bbefb3f98a8fa01d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e17627f2bdb97af7c136d211428695bc853490d3f7fd2c65fb29de6199c8744782852c2c92b72f40c134f2c4285ef76684e5574644fda4ea77e59dd8e7c27f1
|
|
7
|
+
data.tar.gz: 85218ad2ab4b9bf3a22f478dcdf150930453d4326e51807f3018278df3c0d3e93d30b99af1e04b52f47765f5626f5899b8c26d7156a8b3a94aadf7886b536d94
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ You can find recent releases with docs in GitHub:
|
|
|
4
4
|
|
|
5
5
|
https://github.com/shivam091/rails_bootstrap_form/releases
|
|
6
6
|
|
|
7
|
+
## [0.8.2](https://github.com/shivam091/rails_bootstrap_form/compare/v0.8.1...v0.8.2) - 2023-05-28
|
|
8
|
+
|
|
9
|
+
### What's fixed
|
|
10
|
+
|
|
11
|
+
- Fixed error causing `fields_for` to fail when object is passed in method.
|
|
12
|
+
|
|
13
|
+
## [0.8.1](https://github.com/shivam091/rails_bootstrap_form/compare/v0.8.0...v0.8.1) - 2023-05-28
|
|
14
|
+
|
|
15
|
+
### What's new
|
|
16
|
+
|
|
17
|
+
- Updated README
|
|
18
|
+
- Added support to add `required` class to label depending on field's `required` option
|
|
19
|
+
- Added specs for `Labels`, `HelpText`, `InputGroupBuilder`, and `inline` form layout
|
|
20
|
+
|
|
21
|
+
### What's changed
|
|
22
|
+
- Replaced `div` by `fieldset` for dropdowns of `date_select`, `time_select`, and `datetime_select`
|
|
23
|
+
- Removed block parameter from `collection_check_boxes` and `collection_radio_buttons`
|
|
24
|
+
|
|
7
25
|
## [0.8.0](https://github.com/shivam091/rails_bootstrap_form/compare/v0.7.2...v0.8.0) - 2023-05-26
|
|
8
26
|
|
|
9
27
|
### What's new
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# RailsBootstrapForm
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/rails_bootstrap_form)
|
|
4
|
+
|
|
3
5
|
**rails_bootstrap_form** is a Rails form builder that makes it super easy to integrate [Bootstrap 5](https://getbootstrap.com/) forms into your Rails application.
|
|
4
6
|
`rails_bootstrap_forms`'s form helpers generate the form field and its label along with all the Bootstrap mark-up required for proper Bootstrap display.
|
|
5
7
|
|
|
@@ -25,7 +27,7 @@ for setting up `application.scss` and `application.js`.
|
|
|
25
27
|
Add the `rails_bootstrap_form` gem to your `Gemfile`:
|
|
26
28
|
|
|
27
29
|
```ruby
|
|
28
|
-
gem "rails_bootstrap_form", "~> 0.8.
|
|
30
|
+
gem "rails_bootstrap_form", "~> 0.8.2"
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
Then:
|
|
@@ -42,7 +42,8 @@ module RailsBootstrapForm
|
|
|
42
42
|
|
|
43
43
|
def fields_for_options(record_object, fields_options)
|
|
44
44
|
field_options = record_object if record_object.is_a?(Hash) && record_object.extractable_options?
|
|
45
|
-
field_options = {bootstrap_form: options
|
|
45
|
+
field_options = {bootstrap_form: options.fetch(:bootstrap_form, {})}
|
|
46
|
+
field_options.deep_merge!(field_options) if field_options.respond_to?(:deep_merge!)
|
|
46
47
|
field_options
|
|
47
48
|
end
|
|
48
49
|
|