activeadmin 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/views/components/active_admin_form.rb +14 -2
- 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: 96cc413b7ce2a101b6d54a8d4e8c31a6bb4bb8bd9ba8078252e7210088d6eddc
|
4
|
+
data.tar.gz: cfefd3ac1c3a6d60eed87faf31be9fb04980fcb91d6a4f9bc1533702a5c44887
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d3a3562deed7b19ff4ac7230810de7a270deaf9449026bb80f2a4b0b62fe98093b8c0948f2ebb236a6fe18c5d6d0122a94207a697c861ec029491ce421033fc
|
7
|
+
data.tar.gz: c67fd515ee902ffa551bea1a5b0b01e9c6ef84704dae5966892dadf2af69baf593d1f5f35f44d2b7638afbd5eee5ff2af79465efe6d90c539b3ad4bbfb37ef33
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,16 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 3.2.4 [☰](https://github.com/activeadmin/activeadmin/compare/v3.2.3..v3.2.4)
|
6
|
+
|
7
|
+
### Enhancements
|
8
|
+
|
9
|
+
* Test against Rails 7.2 [#8434] by [@mgrunberg]
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* Backport Improve form f.inputs attributes rendering [#8446] by [@amiel]
|
14
|
+
|
5
15
|
## 3.2.3 [☰](https://github.com/activeadmin/activeadmin/compare/v3.2.2..v3.2.3)
|
6
16
|
|
7
17
|
### Enhancements
|
@@ -932,6 +942,8 @@ Please check [0-6-stable] for previous changes.
|
|
932
942
|
[#8349]: https://github.com/activeadmin/activeadmin/pull/8349
|
933
943
|
[#8405]: https://github.com/activeadmin/activeadmin/pull/8405
|
934
944
|
[#8412]: https://github.com/activeadmin/activeadmin/pull/8412
|
945
|
+
[#8434]: https://github.com/activeadmin/activeadmin/pull/8434
|
946
|
+
[#8446]: https://github.com/activeadmin/activeadmin/pull/8446
|
935
947
|
|
936
948
|
[@1000ship]: https://github.com/1000ship
|
937
949
|
[@5t111111]: https://github.com/5t111111
|
data/lib/active_admin/version.rb
CHANGED
@@ -127,12 +127,24 @@ module ActiveAdmin
|
|
127
127
|
html_options[:class] ||= "inputs"
|
128
128
|
legend = args.shift if args.first.is_a?(::String)
|
129
129
|
legend = html_options.delete(:name) if html_options.key?(:name)
|
130
|
-
legend_tag = legend ?
|
131
|
-
fieldset_attrs = html_options
|
130
|
+
legend_tag = legend ? helpers.tag.legend(legend, class: "fieldset-title") : ""
|
131
|
+
fieldset_attrs = tag_attributes html_options
|
132
132
|
@opening_tag = "<fieldset #{fieldset_attrs}>#{legend_tag}<ol>"
|
133
133
|
@closing_tag = "</ol></fieldset>"
|
134
134
|
super(*(args << html_options), &block)
|
135
135
|
end
|
136
|
+
|
137
|
+
private
|
138
|
+
|
139
|
+
def tag_attributes(html_options)
|
140
|
+
if Rails::VERSION::MAJOR <= 6
|
141
|
+
# Reimplement tag.attributes to backport support for Rails 6.1.
|
142
|
+
# TODO: this can be removed when support for Rails 6.x is dropped
|
143
|
+
helpers.tag.tag_options(html_options.to_h).to_s.strip.html_safe
|
144
|
+
else
|
145
|
+
helpers.tag.attributes html_options
|
146
|
+
end
|
147
|
+
end
|
136
148
|
end
|
137
149
|
|
138
150
|
class SemanticActionsProxy < FormtasticProxy
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Maresh
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2024-08-
|
18
|
+
date: 2024-08-24 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|