activeadmin 2.10.0 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -0
- data/app/assets/javascripts/active_admin/base.js +1 -1
- data/app/assets/stylesheets/active_admin/_base.scss +10 -0
- data/app/assets/stylesheets/active_admin/_forms.scss +0 -10
- data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +9 -0
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
- data/app/javascript/active_admin/initializers/has-many.js +4 -1
- data/docs/5-forms.md +1 -1
- data/docs/Gemfile.lock +29 -28
- data/lib/active_admin/application.rb +2 -2
- data/lib/active_admin/base_controller/authorization.rb +1 -1
- data/lib/active_admin/base_controller.rb +1 -0
- data/lib/active_admin/devise.rb +10 -0
- data/lib/active_admin/engine.rb +2 -1
- data/lib/active_admin/resource.rb +2 -2
- data/lib/active_admin/resource_controller/streaming.rb +2 -2
- data/lib/active_admin/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40e545429e58f56877c3374a3b41adb6e02b15dba7ce6155ecef68d606d63edf
|
4
|
+
data.tar.gz: 6e479ebfc7d021502f8df7d11c57ea444bd0c7714be57673575d559b3871f7da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d355e9804b0a59fb57708115c0ff5d3542ffb89e5b02c27e022bd4820747c587de4b26cfcca9894c28f573515d41d79ee4b78a98f627ebb17fbb19dab1e37929
|
7
|
+
data.tar.gz: 17ba06abb61b0a7c74bf0e00201890c9a9e5021a2daa7c8866473f66b8497d3c948875fbffef761585d0b4f9b4fb75b2710142ae365b2f38c730531342d769d0
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,38 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 2.11.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.11.0..v2.11.1)
|
6
|
+
|
7
|
+
### Enhancements
|
8
|
+
|
9
|
+
* Add turbolinks support to has many js. [#7384] by [@amiel]
|
10
|
+
|
11
|
+
### Documentation
|
12
|
+
|
13
|
+
* Remove `insert_tag` from Form-Partial docs. [#7394] by [@TonyArra]
|
14
|
+
|
15
|
+
## 2.11.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.1..v2.11.0)
|
16
|
+
|
17
|
+
### Enhancements
|
18
|
+
|
19
|
+
* Add Rails 7 Support. [#7235] by [@tagliala]
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
23
|
+
* Fix form SCSS variables no longer being defined in the outermost scope, so no longer being accessible. [#7341] by [@gigorok]
|
24
|
+
|
25
|
+
## 2.10.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.0..v2.10.1)
|
26
|
+
|
27
|
+
### Enhancements
|
28
|
+
|
29
|
+
* Apply `box-sizing: border-box` globally. [#7349] by [@deivid-rodriguez]
|
30
|
+
* Vendor normalize 8.0.1. [#7350] by [@deivid-rodriguez]
|
31
|
+
* Remove deprecation warning using controller filters inside initializer. [#7340] by [@mgrunberg]
|
32
|
+
|
33
|
+
### Bug Fixes
|
34
|
+
|
35
|
+
* Fix frozen string error when downloading CSV and streaming disabled. [#7332] by [@deivid-rodriguez]
|
36
|
+
|
5
37
|
## 2.10.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.9.0..v2.10.0)
|
6
38
|
|
7
39
|
### Enhancements
|
@@ -700,9 +732,17 @@ Please check [0-6-stable] for previous changes.
|
|
700
732
|
[#7127]: https://github.com/activeadmin/activeadmin/pull/7127
|
701
733
|
[#7181]: https://github.com/activeadmin/activeadmin/pull/7181
|
702
734
|
[#7205]: https://github.com/activeadmin/activeadmin/pull/7205
|
735
|
+
[#7235]: https://github.com/activeadmin/activeadmin/pull/7235
|
703
736
|
[#7236]: https://github.com/activeadmin/activeadmin/pull/7236
|
704
737
|
[#7262]: https://github.com/activeadmin/activeadmin/pull/7262
|
705
738
|
[#7293]: https://github.com/activeadmin/activeadmin/pull/7293
|
739
|
+
[#7332]: https://github.com/activeadmin/activeadmin/pull/7332
|
740
|
+
[#7340]: https://github.com/activeadmin/activeadmin/pull/7340
|
741
|
+
[#7341]: https://github.com/activeadmin/activeadmin/pull/7341
|
742
|
+
[#7349]: https://github.com/activeadmin/activeadmin/pull/7349
|
743
|
+
[#7350]: https://github.com/activeadmin/activeadmin/pull/7350
|
744
|
+
[#7384]: https://github.com/activeadmin/activeadmin/pull/7384
|
745
|
+
[#7394]: https://github.com/activeadmin/activeadmin/pull/7394
|
706
746
|
|
707
747
|
[@1000ship]: https://github.com/1000ship
|
708
748
|
[@5t111111]: https://github.com/5t111111
|
@@ -740,6 +780,7 @@ Please check [0-6-stable] for previous changes.
|
|
740
780
|
[@Fs00]: https://github.com/Fs00
|
741
781
|
[@fuzziness]: https://github.com/fuzziness
|
742
782
|
[@giapnhdev]: https://github.com/giapnhdev
|
783
|
+
[@gigorok]: https://github.com/gigorok
|
743
784
|
[@glebtv]: https://github.com/glebtv
|
744
785
|
[@gonzedge]: https://github.com/gonzedge
|
745
786
|
[@guigs]: https://github.com/guigs
|
@@ -772,6 +813,7 @@ Please check [0-6-stable] for previous changes.
|
|
772
813
|
[@markstory]: https://github.com/markstory
|
773
814
|
[@mauriciopasquier]: https://github.com/mauriciopasquier
|
774
815
|
[@mconiglio]: https://github.com/mconiglio
|
816
|
+
[@mgrunberg]: https://github.com/mgrunberg
|
775
817
|
[@micred]: https://github.com/micred
|
776
818
|
[@mirelon]: https://github.com/mirelon
|
777
819
|
[@MmKolodziej]: https://github.com/MmKolodziej
|
@@ -801,11 +843,13 @@ Please check [0-6-stable] for previous changes.
|
|
801
843
|
[@sprql]: https://github.com/sprql
|
802
844
|
[@stefsava]: https://github.com/stefsava
|
803
845
|
[@stereoscott]: https://github.com/stereoscott
|
846
|
+
[@tagliala]: https://github.com/tagliala
|
804
847
|
[@taralbass]: https://github.com/taralbass
|
805
848
|
[@tiagotex]: https://github.com/tiagotex
|
806
849
|
[@timoschilling]: https://github.com/timoschilling
|
807
850
|
[@TimPetricola]: https://github.com/TimPetricola
|
808
851
|
[@tomgilligan]: https://github.com/tomgilligan
|
852
|
+
[@TonyArra]: https://github.com/TonyArra
|
809
853
|
[@tordans]: https://github.com/tordans
|
810
854
|
[@utkarsh2102]: https://github.com/utkarsh2102
|
811
855
|
[@varyonic]: https://github.com/varyonic
|
@@ -392,7 +392,6 @@
|
|
392
392
|
$(document).on("change", '.has_many_container[data-sortable] :input[name$="[_destroy]"]', function() {
|
393
393
|
recompute_positions($(this).closest(".has_many"));
|
394
394
|
});
|
395
|
-
init_sortable();
|
396
395
|
$(document).on("has_many_add:after", ".has_many_container", init_sortable);
|
397
396
|
});
|
398
397
|
var init_sortable = function init_sortable() {
|
@@ -426,6 +425,7 @@
|
|
426
425
|
}
|
427
426
|
});
|
428
427
|
};
|
428
|
+
$(document).ready(init_sortable).on("page:load turbolinks:load", init_sortable);
|
429
429
|
var PerPage = function() {
|
430
430
|
function PerPage(element) {
|
431
431
|
this.element = element;
|
@@ -33,6 +33,16 @@
|
|
33
33
|
@import "./structure/main_structure";
|
34
34
|
@import "./structure/title_bar";
|
35
35
|
|
36
|
+
html {
|
37
|
+
box-sizing: border-box;
|
38
|
+
}
|
39
|
+
|
40
|
+
*,
|
41
|
+
*:before,
|
42
|
+
*:after {
|
43
|
+
box-sizing: inherit;
|
44
|
+
}
|
45
|
+
|
36
46
|
body {
|
37
47
|
@include sans-family;
|
38
48
|
line-height: 1.5;
|
@@ -250,8 +250,6 @@ form {
|
|
250
250
|
|
251
251
|
// -------------------------------------- Sidebar Forms
|
252
252
|
|
253
|
-
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
|
254
|
-
|
255
253
|
.sidebar_section {
|
256
254
|
|
257
255
|
label {
|
@@ -274,13 +272,6 @@ $sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
|
|
274
272
|
|
275
273
|
// -------------------------------------- Filter Forms
|
276
274
|
|
277
|
-
$filter-field-seperator-width: 12px;
|
278
|
-
|
279
|
-
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
|
280
|
-
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
|
281
|
-
|
282
|
-
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);
|
283
|
-
|
284
275
|
form.filter_form {
|
285
276
|
.filter_form_field {
|
286
277
|
margin-bottom: 10px;
|
@@ -313,7 +304,6 @@ form.filter_form {
|
|
313
304
|
|
314
305
|
&.filter_date_range {
|
315
306
|
input[type=text] {
|
316
|
-
box-sizing: border-box;
|
317
307
|
width: $date-range-filter-input-width;
|
318
308
|
|
319
309
|
+ input {
|
@@ -1,17 +1,15 @@
|
|
1
|
-
/*! normalize.css
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
|
3
3
|
/* Document
|
4
4
|
========================================================================== */
|
5
5
|
|
6
6
|
/**
|
7
7
|
* 1. Correct the line height in all browsers.
|
8
|
-
* 2. Prevent adjustments of font size after orientation changes in
|
9
|
-
* IE on Windows Phone and in iOS.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
10
9
|
*/
|
11
10
|
|
12
11
|
html {
|
13
12
|
line-height: 1.15; /* 1 */
|
14
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
15
13
|
-webkit-text-size-adjust: 100%; /* 2 */
|
16
14
|
}
|
17
15
|
|
@@ -19,7 +17,7 @@ html {
|
|
19
17
|
========================================================================== */
|
20
18
|
|
21
19
|
/**
|
22
|
-
* Remove the margin in all browsers
|
20
|
+
* Remove the margin in all browsers.
|
23
21
|
*/
|
24
22
|
|
25
23
|
body {
|
@@ -27,15 +25,10 @@ body {
|
|
27
25
|
}
|
28
26
|
|
29
27
|
/**
|
30
|
-
*
|
28
|
+
* Render the `main` element consistently in IE.
|
31
29
|
*/
|
32
30
|
|
33
|
-
|
34
|
-
aside,
|
35
|
-
footer,
|
36
|
-
header,
|
37
|
-
nav,
|
38
|
-
section {
|
31
|
+
main {
|
39
32
|
display: block;
|
40
33
|
}
|
41
34
|
|
@@ -52,25 +45,6 @@ h1 {
|
|
52
45
|
/* Grouping content
|
53
46
|
========================================================================== */
|
54
47
|
|
55
|
-
/**
|
56
|
-
* Add the correct display in IE 9-.
|
57
|
-
* 1. Add the correct display in IE.
|
58
|
-
*/
|
59
|
-
|
60
|
-
figcaption,
|
61
|
-
figure,
|
62
|
-
main { /* 1 */
|
63
|
-
display: block;
|
64
|
-
}
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Add the correct margin in IE 8.
|
68
|
-
*/
|
69
|
-
|
70
|
-
figure {
|
71
|
-
margin: 1em 40px;
|
72
|
-
}
|
73
|
-
|
74
48
|
/**
|
75
49
|
* 1. Add the correct box sizing in Firefox.
|
76
50
|
* 2. Show the overflow in Edge and IE.
|
@@ -96,17 +70,15 @@ pre {
|
|
96
70
|
========================================================================== */
|
97
71
|
|
98
72
|
/**
|
99
|
-
*
|
100
|
-
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
73
|
+
* Remove the gray background on active links in IE 10.
|
101
74
|
*/
|
102
75
|
|
103
76
|
a {
|
104
|
-
background-color: transparent;
|
105
|
-
-webkit-text-decoration-skip: objects; /* 2 */
|
77
|
+
background-color: transparent;
|
106
78
|
}
|
107
79
|
|
108
80
|
/**
|
109
|
-
* 1. Remove the bottom border in Chrome 57-
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
110
82
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
111
83
|
*/
|
112
84
|
|
@@ -116,15 +88,6 @@ abbr[title] {
|
|
116
88
|
text-decoration: underline dotted; /* 2 */
|
117
89
|
}
|
118
90
|
|
119
|
-
/**
|
120
|
-
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
121
|
-
*/
|
122
|
-
|
123
|
-
b,
|
124
|
-
strong {
|
125
|
-
font-weight: inherit;
|
126
|
-
}
|
127
|
-
|
128
91
|
/**
|
129
92
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
130
93
|
*/
|
@@ -146,23 +109,6 @@ samp {
|
|
146
109
|
font-size: 1em; /* 2 */
|
147
110
|
}
|
148
111
|
|
149
|
-
/**
|
150
|
-
* Add the correct font style in Android 4.3-.
|
151
|
-
*/
|
152
|
-
|
153
|
-
dfn {
|
154
|
-
font-style: italic;
|
155
|
-
}
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Add the correct background and color in IE 9-.
|
159
|
-
*/
|
160
|
-
|
161
|
-
mark {
|
162
|
-
background-color: #ff0;
|
163
|
-
color: #000;
|
164
|
-
}
|
165
|
-
|
166
112
|
/**
|
167
113
|
* Add the correct font size in all browsers.
|
168
114
|
*/
|
@@ -196,44 +142,18 @@ sup {
|
|
196
142
|
========================================================================== */
|
197
143
|
|
198
144
|
/**
|
199
|
-
*
|
200
|
-
*/
|
201
|
-
|
202
|
-
audio,
|
203
|
-
video {
|
204
|
-
display: inline-block;
|
205
|
-
}
|
206
|
-
|
207
|
-
/**
|
208
|
-
* Add the correct display in iOS 4-7.
|
209
|
-
*/
|
210
|
-
|
211
|
-
audio:not([controls]) {
|
212
|
-
display: none;
|
213
|
-
height: 0;
|
214
|
-
}
|
215
|
-
|
216
|
-
/**
|
217
|
-
* Remove the border on images inside links in IE 10-.
|
145
|
+
* Remove the border on images inside links in IE 10.
|
218
146
|
*/
|
219
147
|
|
220
148
|
img {
|
221
149
|
border-style: none;
|
222
150
|
}
|
223
151
|
|
224
|
-
/**
|
225
|
-
* Hide the overflow in IE.
|
226
|
-
*/
|
227
|
-
|
228
|
-
svg:not(:root) {
|
229
|
-
overflow: hidden;
|
230
|
-
}
|
231
|
-
|
232
152
|
/* Forms
|
233
153
|
========================================================================== */
|
234
154
|
|
235
155
|
/**
|
236
|
-
* 1. Change the font styles in all browsers
|
156
|
+
* 1. Change the font styles in all browsers.
|
237
157
|
* 2. Remove the margin in Firefox and Safari.
|
238
158
|
*/
|
239
159
|
|
@@ -242,7 +162,7 @@ input,
|
|
242
162
|
optgroup,
|
243
163
|
select,
|
244
164
|
textarea {
|
245
|
-
font-family:
|
165
|
+
font-family: inherit; /* 1 */
|
246
166
|
font-size: 100%; /* 1 */
|
247
167
|
line-height: 1.15; /* 1 */
|
248
168
|
margin: 0; /* 2 */
|
@@ -269,16 +189,14 @@ select { /* 1 */
|
|
269
189
|
}
|
270
190
|
|
271
191
|
/**
|
272
|
-
*
|
273
|
-
* controls in Android 4.
|
274
|
-
* 2. Correct the inability to style clickable types in iOS and Safari.
|
192
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
275
193
|
*/
|
276
194
|
|
277
195
|
button,
|
278
|
-
|
196
|
+
[type="button"],
|
279
197
|
[type="reset"],
|
280
198
|
[type="submit"] {
|
281
|
-
-webkit-appearance: button;
|
199
|
+
-webkit-appearance: button;
|
282
200
|
}
|
283
201
|
|
284
202
|
/**
|
@@ -329,17 +247,15 @@ legend {
|
|
329
247
|
}
|
330
248
|
|
331
249
|
/**
|
332
|
-
*
|
333
|
-
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
250
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
334
251
|
*/
|
335
252
|
|
336
253
|
progress {
|
337
|
-
|
338
|
-
vertical-align: baseline; /* 2 */
|
254
|
+
vertical-align: baseline;
|
339
255
|
}
|
340
256
|
|
341
257
|
/**
|
342
|
-
* Remove the default vertical scrollbar in IE
|
258
|
+
* Remove the default vertical scrollbar in IE 10+.
|
343
259
|
*/
|
344
260
|
|
345
261
|
textarea {
|
@@ -347,8 +263,8 @@ textarea {
|
|
347
263
|
}
|
348
264
|
|
349
265
|
/**
|
350
|
-
* 1. Add the correct box sizing in IE 10
|
351
|
-
* 2. Remove the padding in IE 10
|
266
|
+
* 1. Add the correct box sizing in IE 10.
|
267
|
+
* 2. Remove the padding in IE 10.
|
352
268
|
*/
|
353
269
|
|
354
270
|
[type="checkbox"],
|
@@ -377,10 +293,9 @@ textarea {
|
|
377
293
|
}
|
378
294
|
|
379
295
|
/**
|
380
|
-
* Remove the inner padding
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
381
297
|
*/
|
382
298
|
|
383
|
-
[type="search"]::-webkit-search-cancel-button,
|
384
299
|
[type="search"]::-webkit-search-decoration {
|
385
300
|
-webkit-appearance: none;
|
386
301
|
}
|
@@ -399,12 +314,10 @@ textarea {
|
|
399
314
|
========================================================================== */
|
400
315
|
|
401
316
|
/*
|
402
|
-
* Add the correct display in IE
|
403
|
-
* 1. Add the correct display in Edge, IE, and Firefox.
|
317
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
404
318
|
*/
|
405
319
|
|
406
|
-
details
|
407
|
-
menu {
|
320
|
+
details {
|
408
321
|
display: block;
|
409
322
|
}
|
410
323
|
|
@@ -416,30 +329,19 @@ summary {
|
|
416
329
|
display: list-item;
|
417
330
|
}
|
418
331
|
|
419
|
-
/*
|
332
|
+
/* Misc
|
420
333
|
========================================================================== */
|
421
334
|
|
422
335
|
/**
|
423
|
-
* Add the correct display in IE
|
424
|
-
*/
|
425
|
-
|
426
|
-
canvas {
|
427
|
-
display: inline-block;
|
428
|
-
}
|
429
|
-
|
430
|
-
/**
|
431
|
-
* Add the correct display in IE.
|
336
|
+
* Add the correct display in IE 10+.
|
432
337
|
*/
|
433
338
|
|
434
339
|
template {
|
435
340
|
display: none;
|
436
341
|
}
|
437
342
|
|
438
|
-
/* Hidden
|
439
|
-
========================================================================== */
|
440
|
-
|
441
343
|
/**
|
442
|
-
* Add the correct display in IE 10
|
344
|
+
* Add the correct display in IE 10.
|
443
345
|
*/
|
444
346
|
|
445
347
|
[hidden] {
|
@@ -17,11 +17,10 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
.ui-datepicker-header {
|
20
|
-
height: 14px;
|
21
20
|
@include primary-gradient;
|
22
21
|
padding: 12px 5px 7px 4px;
|
23
22
|
margin: 0px 0px 2px 2px;
|
24
|
-
width:
|
23
|
+
width: 156px;
|
25
24
|
border-top-left-radius: 7px;
|
26
25
|
border-top-right-radius: 7px;
|
27
26
|
position: relative;
|
@@ -40,3 +40,12 @@ $text-input-horizontal-padding: 10px !default;
|
|
40
40
|
$text-input-total-padding: $text-input-horizontal-padding * 2 + $border-width * 2;
|
41
41
|
|
42
42
|
$blank-slate-border: 1px dashed #DADADA !default;
|
43
|
+
|
44
|
+
// Sidebar Forms
|
45
|
+
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
|
46
|
+
|
47
|
+
// Filter Forms
|
48
|
+
$filter-field-seperator-width: 12px !default;
|
49
|
+
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
|
50
|
+
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
|
51
|
+
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);
|
@@ -57,7 +57,6 @@ $(function() {
|
|
57
57
|
recompute_positions($(this).closest('.has_many'));
|
58
58
|
});
|
59
59
|
|
60
|
-
init_sortable();
|
61
60
|
$(document).on('has_many_add:after', '.has_many_container', init_sortable);
|
62
61
|
});
|
63
62
|
|
@@ -93,3 +92,7 @@ var recompute_positions = function(parent){
|
|
93
92
|
}
|
94
93
|
});
|
95
94
|
};
|
95
|
+
|
96
|
+
$(document).
|
97
|
+
ready(init_sortable).
|
98
|
+
on('page:load turbolinks:load', init_sortable);
|
data/docs/5-forms.md
CHANGED
data/docs/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (6.0.4.
|
4
|
+
activesupport (6.0.4.6)
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
6
|
i18n (>= 0.7, < 2)
|
7
7
|
minitest (~> 5.1)
|
@@ -14,10 +14,9 @@ GEM
|
|
14
14
|
execjs
|
15
15
|
coffee-script-source (1.11.1)
|
16
16
|
colorator (1.1.0)
|
17
|
-
commonmarker (0.
|
18
|
-
ruby-enum (~> 0.5)
|
17
|
+
commonmarker (0.23.4)
|
19
18
|
concurrent-ruby (1.1.9)
|
20
|
-
dnsruby (1.61.
|
19
|
+
dnsruby (1.61.9)
|
21
20
|
simpleidn (~> 0.1)
|
22
21
|
em-websocket (0.5.3)
|
23
22
|
eventmachine (>= 0.12.9)
|
@@ -26,34 +25,38 @@ GEM
|
|
26
25
|
ffi (>= 1.15.0)
|
27
26
|
eventmachine (1.2.7)
|
28
27
|
execjs (2.8.1)
|
29
|
-
faraday (1.
|
28
|
+
faraday (1.10.0)
|
30
29
|
faraday-em_http (~> 1.0)
|
31
30
|
faraday-em_synchrony (~> 1.0)
|
32
31
|
faraday-excon (~> 1.1)
|
33
|
-
faraday-httpclient (~> 1.0
|
32
|
+
faraday-httpclient (~> 1.0)
|
33
|
+
faraday-multipart (~> 1.0)
|
34
34
|
faraday-net_http (~> 1.0)
|
35
|
-
faraday-net_http_persistent (~> 1.
|
35
|
+
faraday-net_http_persistent (~> 1.0)
|
36
36
|
faraday-patron (~> 1.0)
|
37
37
|
faraday-rack (~> 1.0)
|
38
|
-
|
38
|
+
faraday-retry (~> 1.0)
|
39
39
|
ruby2_keywords (>= 0.0.4)
|
40
40
|
faraday-em_http (1.0.0)
|
41
41
|
faraday-em_synchrony (1.0.0)
|
42
42
|
faraday-excon (1.1.0)
|
43
43
|
faraday-httpclient (1.0.1)
|
44
|
+
faraday-multipart (1.0.3)
|
45
|
+
multipart-post (>= 1.2, < 3)
|
44
46
|
faraday-net_http (1.0.1)
|
45
47
|
faraday-net_http_persistent (1.2.0)
|
46
48
|
faraday-patron (1.0.0)
|
47
49
|
faraday-rack (1.0.0)
|
48
|
-
|
50
|
+
faraday-retry (1.0.3)
|
51
|
+
ffi (1.15.5)
|
49
52
|
forwardable-extended (2.6.0)
|
50
53
|
gemoji (3.0.1)
|
51
|
-
github-pages (
|
54
|
+
github-pages (225)
|
52
55
|
github-pages-health-check (= 1.17.9)
|
53
56
|
jekyll (= 3.9.0)
|
54
57
|
jekyll-avatar (= 0.7.0)
|
55
58
|
jekyll-coffeescript (= 1.1.1)
|
56
|
-
jekyll-commonmark-ghpages (= 0.
|
59
|
+
jekyll-commonmark-ghpages (= 0.2.0)
|
57
60
|
jekyll-default-layout (= 0.1.4)
|
58
61
|
jekyll-feed (= 0.15.1)
|
59
62
|
jekyll-gist (= 1.5.0)
|
@@ -67,7 +70,7 @@ GEM
|
|
67
70
|
jekyll-relative-links (= 0.6.1)
|
68
71
|
jekyll-remote-theme (= 0.4.3)
|
69
72
|
jekyll-sass-converter (= 1.5.2)
|
70
|
-
jekyll-seo-tag (= 2.
|
73
|
+
jekyll-seo-tag (= 2.8.0)
|
71
74
|
jekyll-sitemap (= 1.4.0)
|
72
75
|
jekyll-swiss (= 1.0.0)
|
73
76
|
jekyll-theme-architect (= 0.2.0)
|
@@ -123,12 +126,12 @@ GEM
|
|
123
126
|
jekyll-coffeescript (1.1.1)
|
124
127
|
coffee-script (~> 2.2)
|
125
128
|
coffee-script-source (~> 1.11.1)
|
126
|
-
jekyll-commonmark (1.
|
127
|
-
commonmarker (~> 0.
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
jekyll-commonmark (~> 1.
|
129
|
+
jekyll-commonmark (1.4.0)
|
130
|
+
commonmarker (~> 0.22)
|
131
|
+
jekyll-commonmark-ghpages (0.2.0)
|
132
|
+
commonmarker (~> 0.23.4)
|
133
|
+
jekyll (~> 3.9.0)
|
134
|
+
jekyll-commonmark (~> 1.4.0)
|
132
135
|
rouge (>= 2.0, < 4.0)
|
133
136
|
jekyll-default-layout (0.1.4)
|
134
137
|
jekyll (~> 3.0)
|
@@ -160,7 +163,7 @@ GEM
|
|
160
163
|
rubyzip (>= 1.3.0, < 3.0)
|
161
164
|
jekyll-sass-converter (1.5.2)
|
162
165
|
sass (~> 3.4)
|
163
|
-
jekyll-seo-tag (2.
|
166
|
+
jekyll-seo-tag (2.8.0)
|
164
167
|
jekyll (>= 3.8, < 5.0)
|
165
168
|
jekyll-sitemap (1.4.0)
|
166
169
|
jekyll (>= 3.7, < 5.0)
|
@@ -218,34 +221,32 @@ GEM
|
|
218
221
|
kramdown-parser-gfm (1.1.0)
|
219
222
|
kramdown (~> 2.0)
|
220
223
|
liquid (4.0.3)
|
221
|
-
listen (3.7.
|
224
|
+
listen (3.7.1)
|
222
225
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
223
226
|
rb-inotify (~> 0.9, >= 0.9.10)
|
224
227
|
mercenary (0.3.6)
|
225
|
-
mini_portile2 (2.
|
228
|
+
mini_portile2 (2.8.0)
|
226
229
|
minima (2.5.1)
|
227
230
|
jekyll (>= 3.5, < 5.0)
|
228
231
|
jekyll-feed (~> 0.9)
|
229
232
|
jekyll-seo-tag (~> 2.1)
|
230
233
|
minitest (5.15.0)
|
231
234
|
multipart-post (2.1.1)
|
232
|
-
nokogiri (1.
|
233
|
-
mini_portile2 (~> 2.
|
235
|
+
nokogiri (1.13.3)
|
236
|
+
mini_portile2 (~> 2.8.0)
|
234
237
|
racc (~> 1.4)
|
235
|
-
octokit (4.
|
238
|
+
octokit (4.22.0)
|
236
239
|
faraday (>= 0.9)
|
237
240
|
sawyer (~> 0.8.0, >= 0.5.3)
|
238
241
|
pathutil (0.16.2)
|
239
242
|
forwardable-extended (~> 2.6)
|
240
243
|
public_suffix (4.0.6)
|
241
244
|
racc (1.6.0)
|
242
|
-
rb-fsevent (0.11.
|
245
|
+
rb-fsevent (0.11.1)
|
243
246
|
rb-inotify (0.10.1)
|
244
247
|
ffi (~> 1.0)
|
245
248
|
rexml (3.2.5)
|
246
249
|
rouge (3.26.0)
|
247
|
-
ruby-enum (0.9.0)
|
248
|
-
i18n
|
249
250
|
ruby2_keywords (0.0.5)
|
250
251
|
rubyzip (2.3.2)
|
251
252
|
safe_yaml (1.0.5)
|
@@ -270,7 +271,7 @@ GEM
|
|
270
271
|
unf_ext
|
271
272
|
unf_ext (0.0.8)
|
272
273
|
unicode-display_width (1.8.0)
|
273
|
-
zeitwerk (2.5.
|
274
|
+
zeitwerk (2.5.4)
|
274
275
|
|
275
276
|
PLATFORMS
|
276
277
|
ruby
|
@@ -150,8 +150,8 @@ module ActiveAdmin
|
|
150
150
|
AbstractController::Callbacks::ClassMethods.public_instance_methods.
|
151
151
|
select { |m| m.match(/_action\z/) }.each do |name|
|
152
152
|
define_method name do |*args, &block|
|
153
|
-
|
154
|
-
|
153
|
+
ActiveSupport.on_load(:active_admin_controller) do
|
154
|
+
public_send name, *args, &block
|
155
155
|
end
|
156
156
|
end
|
157
157
|
end
|
data/lib/active_admin/devise.rb
CHANGED
@@ -53,22 +53,32 @@ module ActiveAdmin
|
|
53
53
|
|
54
54
|
class SessionsController < ::Devise::SessionsController
|
55
55
|
include ::ActiveAdmin::Devise::Controller
|
56
|
+
|
57
|
+
ActiveSupport.run_load_hooks(:active_admin_controller, self)
|
56
58
|
end
|
57
59
|
|
58
60
|
class PasswordsController < ::Devise::PasswordsController
|
59
61
|
include ::ActiveAdmin::Devise::Controller
|
62
|
+
|
63
|
+
ActiveSupport.run_load_hooks(:active_admin_controller, self)
|
60
64
|
end
|
61
65
|
|
62
66
|
class UnlocksController < ::Devise::UnlocksController
|
63
67
|
include ::ActiveAdmin::Devise::Controller
|
68
|
+
|
69
|
+
ActiveSupport.run_load_hooks(:active_admin_controller, self)
|
64
70
|
end
|
65
71
|
|
66
72
|
class RegistrationsController < ::Devise::RegistrationsController
|
67
73
|
include ::ActiveAdmin::Devise::Controller
|
74
|
+
|
75
|
+
ActiveSupport.run_load_hooks(:active_admin_controller, self)
|
68
76
|
end
|
69
77
|
|
70
78
|
class ConfirmationsController < ::Devise::ConfirmationsController
|
71
79
|
include ::ActiveAdmin::Devise::Controller
|
80
|
+
|
81
|
+
ActiveSupport.run_load_hooks(:active_admin_controller, self)
|
72
82
|
end
|
73
83
|
|
74
84
|
def self.controllers_for_filters
|
data/lib/active_admin/engine.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module ActiveAdmin
|
3
3
|
class Engine < ::Rails::Engine
|
4
|
-
|
4
|
+
# Set default values for app_path and load_paths before running initializers
|
5
|
+
initializer "active_admin.load_app_path", before: :load_config_initializers do |app|
|
5
6
|
ActiveAdmin::Application.setting :app_path, app.root
|
6
7
|
ActiveAdmin::Application.setting :load_paths, [File.expand_path("app/admin", app.root)]
|
7
8
|
end
|
@@ -99,11 +99,11 @@ module ActiveAdmin
|
|
99
99
|
# The class this resource wraps. If you register the Post model, Resource#resource_class
|
100
100
|
# will point to the Post class
|
101
101
|
def resource_class
|
102
|
-
|
102
|
+
resource_class_name.constantize
|
103
103
|
end
|
104
104
|
|
105
105
|
def decorator_class
|
106
|
-
|
106
|
+
decorator_class_name&.constantize
|
107
107
|
end
|
108
108
|
|
109
109
|
def resource_name_extension
|
@@ -24,14 +24,14 @@ module ActiveAdmin
|
|
24
24
|
headers["Last-Modified"] = Time.current.httpdate
|
25
25
|
|
26
26
|
if ActiveAdmin.application.disable_streaming_in.include? Rails.env
|
27
|
-
self.response_body = block[
|
27
|
+
self.response_body = block[String.new]
|
28
28
|
else
|
29
29
|
self.response_body = Enumerator.new &block
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
def csv_filename
|
34
|
-
"#{resource_collection_name.to_s.gsub('_', '-')}-#{Time.zone.now.to_date.
|
34
|
+
"#{resource_collection_name.to_s.gsub('_', '-')}-#{Time.zone.now.to_date.to_formatted_s(:default)}.csv"
|
35
35
|
end
|
36
36
|
|
37
37
|
def stream_csv
|
data/lib/active_admin/version.rb
CHANGED
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: 2.
|
4
|
+
version: 2.11.1
|
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: 2022-
|
18
|
+
date: 2022-03-25 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
version: '6.0'
|
129
129
|
- - "<"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '7.1'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -138,7 +138,7 @@ dependencies:
|
|
138
138
|
version: '6.0'
|
139
139
|
- - "<"
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
141
|
+
version: '7.1'
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
143
|
name: ransack
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -578,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
578
578
|
- !ruby/object:Gem::Version
|
579
579
|
version: '0'
|
580
580
|
requirements: []
|
581
|
-
rubygems_version: 3.
|
581
|
+
rubygems_version: 3.3.7
|
582
582
|
signing_key:
|
583
583
|
specification_version: 4
|
584
584
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|