activeadmin 2.14.0 → 3.0.0
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 +20 -0
- data/config/locales/ar.yml +0 -7
- data/config/locales/az.yml +0 -7
- data/config/locales/bg.yml +0 -7
- data/config/locales/bs.yml +0 -7
- data/config/locales/ca.yml +0 -7
- data/config/locales/cs.yml +0 -7
- data/config/locales/da.yml +0 -7
- data/config/locales/de-CH.yml +0 -7
- data/config/locales/de.yml +0 -8
- data/config/locales/el.yml +0 -7
- data/config/locales/en-CA.yml +0 -7
- data/config/locales/en-GB.yml +0 -7
- data/config/locales/en.yml +0 -8
- data/config/locales/eo.yml +0 -8
- data/config/locales/es-MX.yml +0 -7
- data/config/locales/es.yml +0 -8
- data/config/locales/fa.yml +0 -7
- data/config/locales/fi.yml +0 -7
- data/config/locales/fr.yml +0 -8
- data/config/locales/he.yml +0 -9
- data/config/locales/hr.yml +0 -7
- data/config/locales/hu.yml +0 -8
- data/config/locales/id.yml +0 -7
- data/config/locales/it.yml +0 -8
- data/config/locales/ja.yml +0 -8
- data/config/locales/ko.yml +0 -7
- data/config/locales/lt.yml +0 -8
- data/config/locales/lv.yml +0 -7
- data/config/locales/mk.yml +0 -8
- data/config/locales/nb.yml +0 -8
- data/config/locales/nl.yml +0 -8
- data/config/locales/pl.yml +0 -8
- data/config/locales/pt-BR.yml +0 -8
- data/config/locales/pt-PT.yml +0 -7
- data/config/locales/ro.yml +0 -7
- data/config/locales/ru.yml +0 -6
- data/config/locales/sk.yml +0 -8
- data/config/locales/sv-SE.yml +58 -39
- data/config/locales/tr.yml +0 -11
- data/config/locales/uk.yml +0 -6
- data/config/locales/vi.yml +0 -8
- data/config/locales/zh-CN.yml +0 -8
- data/config/locales/zh-TW.yml +0 -7
- data/lib/active_admin/filters/active_filter.rb +1 -1
- data/lib/active_admin/filters/forms.rb +1 -1
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +2 -2
- data/lib/active_admin/inputs/filters/date_range_input.rb +2 -2
- data/lib/active_admin/inputs/filters/numeric_input.rb +1 -1
- data/lib/active_admin/inputs/filters/string_input.rb +1 -1
- data/lib/active_admin/namespace_settings.rb +1 -1
- data/lib/active_admin/orm/active_record/comments/comment.rb +8 -0
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers/display_helper.rb +8 -1
- data/lib/active_admin/views/components/active_admin_form.rb +0 -4
- data/lib/active_admin/views/index_as_table.rb +0 -4
- data/lib/active_admin/views/pages/show.rb +1 -7
- data/lib/active_admin.rb +0 -1
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +1 -1
- metadata +6 -7
- data/lib/ransack_ext.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79c4d32ec46b6d4de5bceb98519d5c8402ccbec03a653a132f3f32b85aa5d741
|
4
|
+
data.tar.gz: edae8745a9f18c01cf2ba44de84fb915fd87c804ceb18879295dc9b52c5bd920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a0d6743ea067aa183840b9c85c8ab3273752e190ee4c2f2406ac3e0e0db9f0646d628d42c90e07494bff83c2118e2c6ae8df9c466d0b34f98e3e11dfe445013
|
7
|
+
data.tar.gz: 3d6aa1a685ef21a44da6fd90195e1692ea82c8c53b584e31671babc16f735fcfa7faa9789682f3983fe562d4be442b66d289d21bda4cb10b472c4ac6157f5a8f
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 3.0.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.14.0..v3.0.0)
|
6
|
+
|
7
|
+
### Breaking Changes
|
8
|
+
|
9
|
+
* Remove custom Ransack predicates that were MetaSearch backports. [#8010] by [@javierjulio]
|
10
|
+
* Require Ransack v4. [#8009] by [@javierjulio]
|
11
|
+
|
12
|
+
### Enhancements
|
13
|
+
|
14
|
+
* Use display name fallback if blank display name result. [#6342] by [@javierjulio]
|
15
|
+
|
16
|
+
### Translation Improvements
|
17
|
+
|
18
|
+
* Improve Swedish translations. [#7993] by [@carlottostromstedt]
|
19
|
+
|
5
20
|
## 2.14.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.1..v2.14.0)
|
6
21
|
|
7
22
|
### Enhancements
|
@@ -784,6 +799,7 @@ Please check [0-6-stable] for previous changes.
|
|
784
799
|
[#6315]: https://github.com/activeadmin/activeadmin/pull/6315
|
785
800
|
[#6318]: https://github.com/activeadmin/activeadmin/pull/6318
|
786
801
|
[#6341]: https://github.com/activeadmin/activeadmin/pull/6341
|
802
|
+
[#6342]: https://github.com/activeadmin/activeadmin/pull/6342
|
787
803
|
[#6368]: https://github.com/activeadmin/activeadmin/pull/6368
|
788
804
|
[#6393]: https://github.com/activeadmin/activeadmin/pull/6393
|
789
805
|
[#6422]: https://github.com/activeadmin/activeadmin/pull/6422
|
@@ -845,6 +861,9 @@ Please check [0-6-stable] for previous changes.
|
|
845
861
|
[#7984]: https://github.com/activeadmin/activeadmin/pull/7984
|
846
862
|
[#7985]: https://github.com/activeadmin/activeadmin/pull/7985
|
847
863
|
[#7986]: https://github.com/activeadmin/activeadmin/pull/7986
|
864
|
+
[#7993]: https://github.com/activeadmin/activeadmin/pull/7993
|
865
|
+
[#8009]: https://github.com/activeadmin/activeadmin/pull/8009
|
866
|
+
[#8010]: https://github.com/activeadmin/activeadmin/pull/8010
|
848
867
|
|
849
868
|
[@1000ship]: https://github.com/1000ship
|
850
869
|
[@5t111111]: https://github.com/5t111111
|
@@ -865,6 +884,7 @@ Please check [0-6-stable] for previous changes.
|
|
865
884
|
[@brunoarueira]: https://github.com/brunoarueira
|
866
885
|
[@brunvez]: https://github.com/brunvez
|
867
886
|
[@buren]: https://github.com/buren
|
887
|
+
[@carlottostromstedt]: https://github.com/carlottostromstedt
|
868
888
|
[@chancancode]: https://github.com/chancancode
|
869
889
|
[@chrp]: https://github.com/chrp
|
870
890
|
[@chumakoff]: https://github.com/chumakoff
|
data/config/locales/ar.yml
CHANGED
@@ -24,13 +24,6 @@ ar:
|
|
24
24
|
buttons:
|
25
25
|
filter: "تصفية"
|
26
26
|
clear: "تفريغ التصفية"
|
27
|
-
predicates:
|
28
|
-
contains: "يحتوي"
|
29
|
-
equals: "متساوي"
|
30
|
-
starts_with: "يبدأ بـ"
|
31
|
-
ends_with: "ينتهي بـ"
|
32
|
-
greater_than: "أكبر من"
|
33
|
-
less_than: "أقل من"
|
34
27
|
search_status:
|
35
28
|
headline: "حالات البحث:"
|
36
29
|
current_scope: "المجال:"
|
data/config/locales/az.yml
CHANGED
@@ -24,13 +24,6 @@ az:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrlə"
|
26
26
|
clear: "Təmizlə"
|
27
|
-
predicates:
|
28
|
-
contains: "Yerləşir"
|
29
|
-
equals: "Bərabərdir"
|
30
|
-
starts_with: "Başlayır"
|
31
|
-
ends_with: "Bitir"
|
32
|
-
greater_than: "böyük"
|
33
|
-
less_than: "kiçik"
|
34
27
|
search_status:
|
35
28
|
headline: "Axtarışın statusu:"
|
36
29
|
current_scope: "Sahə:"
|
data/config/locales/bg.yml
CHANGED
@@ -24,13 +24,6 @@ bg:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Филтриране"
|
26
26
|
clear: "Изчистване"
|
27
|
-
predicates:
|
28
|
-
contains: "съдържа"
|
29
|
-
equals: "равно на"
|
30
|
-
starts_with: "Започва с"
|
31
|
-
ends_with: "Завършва с"
|
32
|
-
greater_than: "по-голямо от"
|
33
|
-
less_than: "по-малко от"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Да"
|
36
29
|
"no": "не"
|
data/config/locales/bs.yml
CHANGED
@@ -24,13 +24,6 @@ bs:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtriraj"
|
26
26
|
clear: "Ukloni filtere"
|
27
|
-
predicates:
|
28
|
-
contains: "Sadrži"
|
29
|
-
equals: "Jednako"
|
30
|
-
starts_with: "počinje s"
|
31
|
-
ends_with: "Završava sa"
|
32
|
-
greater_than: "Veće od"
|
33
|
-
less_than: "Manje od"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Da"
|
36
29
|
"no": "Nema"
|
data/config/locales/ca.yml
CHANGED
@@ -24,13 +24,6 @@ ca:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrar"
|
26
26
|
clear: "Treure filtres"
|
27
|
-
predicates:
|
28
|
-
contains: "Conté"
|
29
|
-
equals: "Igual a"
|
30
|
-
starts_with: "Comença amb"
|
31
|
-
ends_with: "Acaba amb"
|
32
|
-
greater_than: "Més gran que"
|
33
|
-
less_than: "Més petit que"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Sí"
|
36
29
|
"no": "No"
|
data/config/locales/cs.yml
CHANGED
@@ -24,13 +24,6 @@ cs:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrovat"
|
26
26
|
clear: "Vyčistit filtry"
|
27
|
-
predicates:
|
28
|
-
contains: "Obsahuje"
|
29
|
-
equals: "Odpovídá"
|
30
|
-
starts_with: "Začíná na"
|
31
|
-
ends_with: "Končí na"
|
32
|
-
greater_than: "Větší než"
|
33
|
-
less_than: "Menší než"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Ano"
|
36
29
|
"no": "Ne"
|
data/config/locales/da.yml
CHANGED
@@ -25,13 +25,6 @@ da:
|
|
25
25
|
buttons:
|
26
26
|
filter: "Filtrer"
|
27
27
|
clear: "Ryd filtre"
|
28
|
-
predicates:
|
29
|
-
contains: "Indeholder"
|
30
|
-
equals: "Lig"
|
31
|
-
starts_with: "Begynder med"
|
32
|
-
ends_with: "Slutter med"
|
33
|
-
greater_than: "Større end"
|
34
|
-
less_than: "Mindre end"
|
35
28
|
search_status:
|
36
29
|
headline: "Søgestatus:"
|
37
30
|
current_scope: "Perspektiv:"
|
data/config/locales/de-CH.yml
CHANGED
@@ -24,13 +24,6 @@
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtern"
|
26
26
|
clear: "Filter entfernen"
|
27
|
-
predicates:
|
28
|
-
contains: "Enthält"
|
29
|
-
equals: "Gleich"
|
30
|
-
starts_with: "Beginnt mit"
|
31
|
-
ends_with: "Endet mit"
|
32
|
-
greater_than: "Grösser als"
|
33
|
-
less_than: "Kleiner als"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Ja"
|
36
29
|
"no": "Nicht"
|
data/config/locales/de.yml
CHANGED
@@ -43,14 +43,6 @@ de:
|
|
43
43
|
filter: "Filtern"
|
44
44
|
clear: "Filter entfernen"
|
45
45
|
predicates:
|
46
|
-
contains: "Enthält"
|
47
|
-
equals: "Gleich"
|
48
|
-
starts_with: "Beginnt mit"
|
49
|
-
ends_with: "Endet mit"
|
50
|
-
greater_than: "Größer als"
|
51
|
-
less_than: "Kleiner als"
|
52
|
-
gteq_datetime: "Größer gleich"
|
53
|
-
lteq_datetime: "Kleiner gleich"
|
54
46
|
from: "Von"
|
55
47
|
to: "Bis"
|
56
48
|
scopes:
|
data/config/locales/el.yml
CHANGED
@@ -24,13 +24,6 @@ el:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Φίλτρα"
|
26
26
|
clear: "Καθαρισμός Φίλτρων"
|
27
|
-
predicates:
|
28
|
-
contains: "Περιέχει"
|
29
|
-
equals: "Είναι ίσο με"
|
30
|
-
starts_with: "Αρχίζει με"
|
31
|
-
ends_with: "Καταλήγει σε"
|
32
|
-
greater_than: "Μεγαλύτερο από"
|
33
|
-
less_than: "Μικρότερο από"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Ναι"
|
36
29
|
"no": "Όχι"
|
data/config/locales/en-CA.yml
CHANGED
@@ -25,13 +25,6 @@
|
|
25
25
|
buttons:
|
26
26
|
filter: "Filter"
|
27
27
|
clear: "Clear Filters"
|
28
|
-
predicates:
|
29
|
-
contains: "Contains"
|
30
|
-
equals: "Equals"
|
31
|
-
starts_with: "Starts with"
|
32
|
-
ends_with: "Ends with"
|
33
|
-
greater_than: "Greater than"
|
34
|
-
less_than: "Less than"
|
35
28
|
search_status:
|
36
29
|
headline: "Search status:"
|
37
30
|
current_scope: "Scope:"
|
data/config/locales/en-GB.yml
CHANGED
@@ -25,13 +25,6 @@
|
|
25
25
|
buttons:
|
26
26
|
filter: "Filter"
|
27
27
|
clear: "Clear Filters"
|
28
|
-
predicates:
|
29
|
-
contains: "Contains"
|
30
|
-
equals: "Equals"
|
31
|
-
starts_with: "Starts with"
|
32
|
-
ends_with: "Ends with"
|
33
|
-
greater_than: "Greater than"
|
34
|
-
less_than: "Less than"
|
35
28
|
search_status:
|
36
29
|
headline: "Search status:"
|
37
30
|
current_scope: "Scope:"
|
data/config/locales/en.yml
CHANGED
@@ -43,14 +43,6 @@ en:
|
|
43
43
|
filter: "Filter"
|
44
44
|
clear: "Clear Filters"
|
45
45
|
predicates:
|
46
|
-
contains: "Contains"
|
47
|
-
equals: "Equals"
|
48
|
-
starts_with: "Starts with"
|
49
|
-
ends_with: "Ends with"
|
50
|
-
greater_than: "Greater than"
|
51
|
-
less_than: "Less than"
|
52
|
-
gteq_datetime: "Greater or equal to"
|
53
|
-
lteq_datetime: "Lesser or equal to"
|
54
46
|
from: "From"
|
55
47
|
to: "To"
|
56
48
|
scopes:
|
data/config/locales/eo.yml
CHANGED
@@ -27,14 +27,6 @@ eo:
|
|
27
27
|
filter: "Filtri"
|
28
28
|
clear: "Viŝi filtrilojn"
|
29
29
|
predicates:
|
30
|
-
contains: "Enhavas"
|
31
|
-
equals: "Egalas al"
|
32
|
-
starts_with: "Komenciĝas per"
|
33
|
-
ends_with: "Finiĝas per"
|
34
|
-
greater_than: "Pli grandas ol"
|
35
|
-
less_than: "Malpli grandas ol"
|
36
|
-
gteq_datetime: "Pli grandas ol aŭ egalas al"
|
37
|
-
lteq_datetime: "Malpli grandas ol aŭ egalas al"
|
38
30
|
from: "De"
|
39
31
|
to: "Al"
|
40
32
|
search_status:
|
data/config/locales/es-MX.yml
CHANGED
@@ -24,13 +24,6 @@ es-MX:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrar"
|
26
26
|
clear: "Quitar Filtros"
|
27
|
-
predicates:
|
28
|
-
contains: "Contiene"
|
29
|
-
equals: "Igual a"
|
30
|
-
starts_with: "Empieza con"
|
31
|
-
ends_with: "Termina con"
|
32
|
-
greater_than: "Mayor que"
|
33
|
-
less_than: "Menor que"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Sí"
|
36
29
|
"no": "No"
|
data/config/locales/es.yml
CHANGED
@@ -43,14 +43,6 @@ es:
|
|
43
43
|
filter: "Filtrar"
|
44
44
|
clear: "Quitar Filtros"
|
45
45
|
predicates:
|
46
|
-
contains: "Contiene"
|
47
|
-
equals: "Igual a"
|
48
|
-
starts_with: "Empieza con"
|
49
|
-
ends_with: "Termina con"
|
50
|
-
greater_than: "Mayor que"
|
51
|
-
less_than: "Menor que"
|
52
|
-
gteq_datetime: "Mayor o igual que"
|
53
|
-
lteq_datetime: "Menor o igual que"
|
54
46
|
from: "Desde"
|
55
47
|
to: "Hasta"
|
56
48
|
scopes:
|
data/config/locales/fa.yml
CHANGED
@@ -24,13 +24,6 @@ fa:
|
|
24
24
|
buttons:
|
25
25
|
filter: "فیلتر"
|
26
26
|
clear: "پاک کردن فیلتر"
|
27
|
-
predicates:
|
28
|
-
contains: "شامل"
|
29
|
-
equals: "برابر با"
|
30
|
-
starts_with: "شروع با"
|
31
|
-
ends_with: "پایان با"
|
32
|
-
greater_than: "بزرگتر از"
|
33
|
-
less_than: "کوچکتر از"
|
34
27
|
status_tag:
|
35
28
|
"yes": "بله"
|
36
29
|
"no": "بدون"
|
data/config/locales/fi.yml
CHANGED
@@ -24,13 +24,6 @@ fi:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Hae"
|
26
26
|
clear: "Tyhjennä valinnat"
|
27
|
-
predicates:
|
28
|
-
contains: "Sisältää"
|
29
|
-
equals: "On yhtä kuin"
|
30
|
-
starts_with: "Alkaa"
|
31
|
-
ends_with: "Päättyy"
|
32
|
-
greater_than: "Suurempi kuin"
|
33
|
-
less_than: "Pienempi kuin"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Kyllä"
|
36
29
|
"no": "Ei"
|
data/config/locales/fr.yml
CHANGED
@@ -26,14 +26,6 @@ fr:
|
|
26
26
|
filter: "Filtrer"
|
27
27
|
clear: "Supprimer les filtres"
|
28
28
|
predicates:
|
29
|
-
contains: "Contient"
|
30
|
-
equals: "Égal à"
|
31
|
-
starts_with: "Commence par"
|
32
|
-
ends_with: "Se termine par"
|
33
|
-
greater_than: "Plus grand que"
|
34
|
-
less_than: "Plus petit que"
|
35
|
-
gteq_datetime: "Ultérieur ou égal à"
|
36
|
-
lteq_datetime: "Antérieur ou égal à"
|
37
29
|
from: "De"
|
38
30
|
to: "À"
|
39
31
|
search_status:
|
data/config/locales/he.yml
CHANGED
@@ -25,15 +25,6 @@ he:
|
|
25
25
|
buttons:
|
26
26
|
filter: "סינון"
|
27
27
|
clear: "איפוס שדות"
|
28
|
-
predicates:
|
29
|
-
contains: "מכיל"
|
30
|
-
equals: "שווה ל"
|
31
|
-
starts_with: "מתחיל עם"
|
32
|
-
ends_with: "מסתיים ב"
|
33
|
-
greater_than: "גדול מ"
|
34
|
-
less_than: "פחות מ"
|
35
|
-
gteq_datetime: "אחרי או בתאריך"
|
36
|
-
lteq_datetime: "לפני או בתאריך"
|
37
28
|
search_status:
|
38
29
|
headline: "תוצאות חיפוש:"
|
39
30
|
current_scope: "תחום:"
|
data/config/locales/hr.yml
CHANGED
@@ -24,13 +24,6 @@ hr:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtriraj"
|
26
26
|
clear: "Očisti filtere"
|
27
|
-
predicates:
|
28
|
-
contains: "Sadrži"
|
29
|
-
equals: "Jednako"
|
30
|
-
starts_with: "počinje s"
|
31
|
-
ends_with: "Završava sa"
|
32
|
-
greater_than: "Veće od"
|
33
|
-
less_than: "Manje od"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Da"
|
36
29
|
"no": "Nema"
|
data/config/locales/hu.yml
CHANGED
@@ -25,14 +25,6 @@ hu:
|
|
25
25
|
filter: "Szűrés"
|
26
26
|
clear: "Feltételek törlése"
|
27
27
|
predicates:
|
28
|
-
contains: "Tartalmazza"
|
29
|
-
equals: "Pontosan"
|
30
|
-
starts_with: "kezdődik"
|
31
|
-
ends_with: "végződik"
|
32
|
-
greater_than: "Nagyobb, mint"
|
33
|
-
less_than: "Kisebb, mint"
|
34
|
-
gteq_datetime: "Nagyobb vagy egyenlő, mint"
|
35
|
-
lteq_datetime: "Kisebb vagy egyenlő, mint"
|
36
28
|
from: "-tól"
|
37
29
|
to: "-ig"
|
38
30
|
status_tag:
|
data/config/locales/id.yml
CHANGED
@@ -24,13 +24,6 @@ id:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filter"
|
26
26
|
clear: "Hapus Filters"
|
27
|
-
predicates:
|
28
|
-
contains: "Mengandung"
|
29
|
-
equals: "Sama dengan"
|
30
|
-
starts_with: "Diawali dengan"
|
31
|
-
ends_with: "Diakhiri dengan"
|
32
|
-
greater_than: "Lebih besar dari"
|
33
|
-
less_than: "Lebih kecil dari"
|
34
27
|
search_status:
|
35
28
|
headline: "Status Pencarian:"
|
36
29
|
current_scope: "Scope:"
|
data/config/locales/it.yml
CHANGED
@@ -43,14 +43,6 @@ it:
|
|
43
43
|
filter: "Filtra"
|
44
44
|
clear: "Rimuovi filtri"
|
45
45
|
predicates:
|
46
|
-
contains: "Contiene"
|
47
|
-
equals: "Uguale a"
|
48
|
-
starts_with: "Inizia con"
|
49
|
-
ends_with: "Finisce con"
|
50
|
-
greater_than: "Maggiore di"
|
51
|
-
less_than: "Minore di"
|
52
|
-
gteq_datetime: "Maggiore o uguale a"
|
53
|
-
lteq_datetime: "Minore o uguale a"
|
54
46
|
from: "Da"
|
55
47
|
to: "A"
|
56
48
|
scopes:
|
data/config/locales/ja.yml
CHANGED
@@ -26,14 +26,6 @@ ja:
|
|
26
26
|
filter: "絞り込む"
|
27
27
|
clear: "条件を削除する"
|
28
28
|
predicates:
|
29
|
-
contains: "を含む"
|
30
|
-
equals: "等しい"
|
31
|
-
starts_with: "で始まる"
|
32
|
-
ends_with: "で終わる"
|
33
|
-
greater_than: "より大きい"
|
34
|
-
less_than: "より小さい"
|
35
|
-
gteq_datetime: "以上"
|
36
|
-
lteq_datetime: "以下"
|
37
29
|
from: "開始"
|
38
30
|
to: "終了"
|
39
31
|
search_status:
|
data/config/locales/ko.yml
CHANGED
@@ -24,13 +24,6 @@ ko:
|
|
24
24
|
buttons:
|
25
25
|
filter: "필터"
|
26
26
|
clear: "필터 초기화"
|
27
|
-
predicates:
|
28
|
-
contains: "포함하는 문구"
|
29
|
-
equals: "일치하는 문구"
|
30
|
-
starts_with: "시작하는 문구"
|
31
|
-
ends_with: "종료하는 문구"
|
32
|
-
greater_than: "초과"
|
33
|
-
less_than: "미만"
|
34
27
|
search_status:
|
35
28
|
headline: "검색 상태:"
|
36
29
|
current_scope: "검색 범위:"
|
data/config/locales/lt.yml
CHANGED
@@ -25,14 +25,6 @@ lt:
|
|
25
25
|
filter: 'Filtras'
|
26
26
|
clear: 'Išvalyti filtrus'
|
27
27
|
predicates:
|
28
|
-
contains: "Sudėtyje yra"
|
29
|
-
equals: 'lygus'
|
30
|
-
starts_with: "Prasideda nuo"
|
31
|
-
ends_with: "Baigiasi"
|
32
|
-
greater_than: 'didesnis nei'
|
33
|
-
less_than: 'mažiau nei'
|
34
|
-
gteq_datetime: "daugiau arba lygu nei"
|
35
|
-
lteq_datetime: "mažiau arba lygu nei"
|
36
28
|
from: "Nuo"
|
37
29
|
to: "Iki"
|
38
30
|
search_status:
|
data/config/locales/lv.yml
CHANGED
@@ -24,13 +24,6 @@ lv:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrēt"
|
26
26
|
clear: "Novākt filtrus"
|
27
|
-
predicates:
|
28
|
-
contains: "Satur"
|
29
|
-
equals: "Vienāds ar"
|
30
|
-
starts_with: "Sākas ar"
|
31
|
-
ends_with: "Beidzas ar"
|
32
|
-
greater_than: "Lielāks par"
|
33
|
-
less_than: "Mazāks par"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Jā"
|
36
29
|
"no": "Nē"
|
data/config/locales/mk.yml
CHANGED
@@ -35,14 +35,6 @@ mk:
|
|
35
35
|
filter: "Пребарај"
|
36
36
|
clear: "Исчисти филтри"
|
37
37
|
predicates:
|
38
|
-
contains: "Содржи"
|
39
|
-
equals: "Е еднакво со"
|
40
|
-
starts_with: "Започнува со"
|
41
|
-
ends_with: "Завршува сo"
|
42
|
-
greater_than: "Е поголемо од"
|
43
|
-
less_than: "Е помало од"
|
44
|
-
gteq_datetime: "Е поголемо или еднакво со"
|
45
|
-
lteq_datetime: "Е помало или еднакво со"
|
46
38
|
from: "Од"
|
47
39
|
to: "До"
|
48
40
|
search_status:
|
data/config/locales/nb.yml
CHANGED
@@ -25,14 +25,6 @@ nb:
|
|
25
25
|
filter: "Filter"
|
26
26
|
clear: "Fjern filter"
|
27
27
|
predicates:
|
28
|
-
contains: "Inneholder"
|
29
|
-
equals: "Er lik"
|
30
|
-
starts_with: "Starter med"
|
31
|
-
ends_with: "Slutter med"
|
32
|
-
greater_than: "Større enn"
|
33
|
-
less_than: "Mindre enn"
|
34
|
-
gteq_datetime: "Større enn eller lik"
|
35
|
-
lteq_datetime: "Mindre enn eller lik"
|
36
28
|
from: "Fra"
|
37
29
|
to: "Til"
|
38
30
|
search_status:
|
data/config/locales/nl.yml
CHANGED
@@ -27,15 +27,7 @@ nl:
|
|
27
27
|
filter: "Filter"
|
28
28
|
clear: "Maak Filters Ongedaan"
|
29
29
|
predicates:
|
30
|
-
contains: "Bevat"
|
31
|
-
equals: "Gelijk aan"
|
32
|
-
starts_with: "Begint met"
|
33
|
-
ends_with: "Eindigt op"
|
34
|
-
greater_than: "Groter dan"
|
35
|
-
less_than: "Kleiner dan"
|
36
30
|
from: Van
|
37
|
-
gteq_datetime: Groter of gelijk aan
|
38
|
-
lteq_datetime: Kleiner of gelijk aan
|
39
31
|
to: Tot
|
40
32
|
search_status:
|
41
33
|
current_scope: "Scope:"
|
data/config/locales/pl.yml
CHANGED
@@ -47,14 +47,6 @@ pl:
|
|
47
47
|
filter: "Filtruj"
|
48
48
|
clear: "Wyczyść Filtry"
|
49
49
|
predicates:
|
50
|
-
contains: "Zawiera"
|
51
|
-
equals: "Równe"
|
52
|
-
starts_with: "Zaczyna się"
|
53
|
-
ends_with: "Kończy się"
|
54
|
-
greater_than: "Większe niż"
|
55
|
-
less_than: "Mniejsze niż"
|
56
|
-
gteq_datetime: "Większe lub równe"
|
57
|
-
lteq_datetime: "Mniejsze lub równe"
|
58
50
|
from: "Od"
|
59
51
|
to: "Do"
|
60
52
|
scopes:
|
data/config/locales/pt-BR.yml
CHANGED
@@ -26,14 +26,6 @@ pt-BR:
|
|
26
26
|
filter: "Filtrar"
|
27
27
|
clear: "Limpar Filtros"
|
28
28
|
predicates:
|
29
|
-
contains: "Contém"
|
30
|
-
equals: "Igual A"
|
31
|
-
starts_with: "Começa com"
|
32
|
-
ends_with: "Termina com"
|
33
|
-
greater_than: "Maior Que"
|
34
|
-
less_than: "Menor Que"
|
35
|
-
gteq_datetime: "Maior ou igual a"
|
36
|
-
lteq_datetime: "Menor ou igual a"
|
37
29
|
from: "A partir de"
|
38
30
|
to: "Até"
|
39
31
|
search_status:
|
data/config/locales/pt-PT.yml
CHANGED
@@ -24,13 +24,6 @@
|
|
24
24
|
buttons:
|
25
25
|
filter: "Filtrar"
|
26
26
|
clear: "Limpar Filtros"
|
27
|
-
predicates:
|
28
|
-
contains: "Contém"
|
29
|
-
equals: "Igual A"
|
30
|
-
starts_with: "Começa com"
|
31
|
-
ends_with: "Termina com"
|
32
|
-
greater_than: "Maior Que"
|
33
|
-
less_than: "Menor Que"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Sim"
|
36
29
|
"no": "Não"
|
data/config/locales/ro.yml
CHANGED
@@ -24,13 +24,6 @@ ro:
|
|
24
24
|
buttons:
|
25
25
|
filter: "Cautati"
|
26
26
|
clear: "Stergeti filtrele"
|
27
|
-
predicates:
|
28
|
-
contains: "Conține"
|
29
|
-
equals: "Egal Cu"
|
30
|
-
starts_with: "începe cu"
|
31
|
-
ends_with: "se termină cu"
|
32
|
-
greater_than: "Mai Mare Decat"
|
33
|
-
less_than: "Mai Mic Decat"
|
34
27
|
status_tag:
|
35
28
|
"yes": "Da"
|
36
29
|
"no": "Nu"
|
data/config/locales/ru.yml
CHANGED
@@ -25,12 +25,6 @@ ru:
|
|
25
25
|
filter: "Фильтровать"
|
26
26
|
clear: "Очистить"
|
27
27
|
predicates:
|
28
|
-
contains: "Содержит"
|
29
|
-
equals: "Равно"
|
30
|
-
starts_with: "Начинается с"
|
31
|
-
ends_with: "Заканчивается"
|
32
|
-
greater_than: "больше"
|
33
|
-
less_than: "меньше"
|
34
28
|
from: "От"
|
35
29
|
to: "До"
|
36
30
|
search_status:
|
data/config/locales/sk.yml
CHANGED
@@ -47,14 +47,6 @@ sk:
|
|
47
47
|
filter: "Filtrovať"
|
48
48
|
clear: "Vyčistiť filtre"
|
49
49
|
predicates:
|
50
|
-
contains: "Obsahuje"
|
51
|
-
equals: "Je presne"
|
52
|
-
starts_with: "Začína na"
|
53
|
-
ends_with: "Končí na"
|
54
|
-
greater_than: "Väčší ako"
|
55
|
-
less_than: "Menší ako"
|
56
|
-
gteq_datetime: "Od"
|
57
|
-
lteq_datetime: "Do"
|
58
50
|
from: "Od"
|
59
51
|
to: "Do"
|
60
52
|
scopes:
|
data/config/locales/sv-SE.yml
CHANGED
@@ -1,17 +1,34 @@
|
|
1
1
|
"sv-SE":
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comment:
|
5
|
+
one: "Kommentar"
|
6
|
+
other: "Kommentarer"
|
7
|
+
active_admin/comment:
|
8
|
+
one: "Kommentar"
|
9
|
+
other: "Kommentarer"
|
10
|
+
attributes:
|
11
|
+
active_admin/comment:
|
12
|
+
author_type: "Författartyp"
|
13
|
+
body: "Innehåll"
|
14
|
+
created_at: "Skapad"
|
15
|
+
namespace: "Namnrymd"
|
16
|
+
resource_type: "Resurstyp"
|
17
|
+
updated_at: "Aktualiserad"
|
2
18
|
active_admin:
|
3
19
|
dashboard: Skrivbord
|
4
20
|
dashboard_welcome:
|
5
21
|
welcome: "Välkommen till Active Admin. Detta är ditt standardskrivbord."
|
6
|
-
call_to_action: "För att lägga till sektioner,
|
22
|
+
call_to_action: "För att lägga till sektioner, gå till 'app/admin/dashboard.rb'"
|
7
23
|
view: "Visa"
|
8
24
|
edit: "Redigera"
|
9
25
|
delete: "Ta bort"
|
10
|
-
delete_confirmation: "Är du säker att du vill ta bort
|
26
|
+
delete_confirmation: "Är du säker på att du vill ta bort detta?"
|
27
|
+
create_another: "Skapa en till %{model}"
|
11
28
|
new_model: "Ny %{model}"
|
12
29
|
edit_model: "Redigera %{model}"
|
13
30
|
delete_model: "Ta bort %{model}"
|
14
|
-
details: "
|
31
|
+
details: "%{model}-detaljer"
|
15
32
|
cancel: "Avbryt"
|
16
33
|
empty: "Tom"
|
17
34
|
previous: "Föregående"
|
@@ -20,82 +37,84 @@
|
|
20
37
|
has_many_new: "Skapa en ny %{model}"
|
21
38
|
has_many_delete: "Ta bort"
|
22
39
|
has_many_remove: "Ta bort"
|
40
|
+
move: "Flytta"
|
23
41
|
filters:
|
24
42
|
buttons:
|
25
|
-
filter: "
|
43
|
+
filter: "Filtrera"
|
26
44
|
clear: "Rensa filter"
|
27
45
|
predicates:
|
28
|
-
contains: "Innehåller"
|
29
|
-
equals: "Lika med"
|
30
|
-
starts_with: "Börjar med"
|
31
|
-
ends_with: "Slutar med"
|
32
|
-
greater_than: "Större än"
|
33
|
-
less_than: "Mindre än"
|
34
46
|
from: "Från"
|
35
47
|
to: "Till"
|
48
|
+
scopes:
|
49
|
+
all: "Alla"
|
36
50
|
search_status:
|
37
|
-
headline: "
|
38
|
-
current_scope: "
|
39
|
-
current_filters: "
|
51
|
+
headline: "Sökstatus:"
|
52
|
+
current_scope: "Omfattning:"
|
53
|
+
current_filters: "Aktiva filter:"
|
40
54
|
no_current_filters: "Inga"
|
41
55
|
status_tag:
|
42
56
|
"yes": "Ja"
|
43
57
|
"no": "Nej"
|
44
58
|
"unset": "Nej"
|
45
|
-
main_content: "Implementera %{model}#main_content för att
|
59
|
+
main_content: "Implementera %{model}#main_content för att visa innehåll."
|
46
60
|
logout: "Logga ut"
|
47
61
|
powered_by: "Powered by %{active_admin} %{version}"
|
48
62
|
sidebars:
|
49
63
|
filters: "Filter"
|
50
|
-
search_status: "
|
64
|
+
search_status: "Sökstatus"
|
51
65
|
pagination:
|
52
|
-
empty: "Ingen %{model}
|
53
|
-
one: "Visar <b>1</b>
|
54
|
-
one_page: "Visar <b>alla %{n}</b>
|
66
|
+
empty: "Ingen %{model} hittades"
|
67
|
+
one: "Visar <b>1</b> %{model}"
|
68
|
+
one_page: "Visar <b>alla %{n}</b> %{model}"
|
55
69
|
multiple: "Visar %{model} <b>%{from} - %{to}</b> av <b>%{total}</b> totalt"
|
56
70
|
multiple_without_total: "Visar %{model} <b>%{from} - %{to}</b>"
|
71
|
+
per_page: "Per sida: "
|
57
72
|
entry:
|
58
73
|
one: "inlägg"
|
59
74
|
other: "inlägg"
|
60
|
-
any: "
|
75
|
+
any: "Alla"
|
61
76
|
blank_slate:
|
62
|
-
content: "
|
77
|
+
content: "Det finns inga %{resource_name} än."
|
63
78
|
link: "Skapa en"
|
64
79
|
dropdown_actions:
|
65
|
-
button_label: "
|
80
|
+
button_label: "Åtgärder"
|
66
81
|
batch_actions:
|
67
|
-
button_label: "Batch
|
82
|
+
button_label: "Batch-åtgärder"
|
68
83
|
default_confirmation: "Är du säker på att du vill göra detta?"
|
69
84
|
delete_confirmation: "Är du säker på att du vill radera dessa %{plural_model}?"
|
70
85
|
succesfully_destroyed:
|
71
86
|
one: "Lyckades radera 1 %{model}"
|
72
87
|
other: "Lyckades radera %{count} %{plural_model}"
|
73
|
-
selection_toggle_explanation: "(
|
74
|
-
action_label: "%{title}
|
88
|
+
selection_toggle_explanation: "(Byt markering)"
|
89
|
+
action_label: "%{title} markerad"
|
75
90
|
labels:
|
76
91
|
destroy: "Radera"
|
77
92
|
comments:
|
78
93
|
created_at: "Skapad"
|
79
|
-
resource_type: "
|
80
|
-
author_type: "
|
94
|
+
resource_type: "Resurstyp"
|
95
|
+
author_type: "Författartyp"
|
81
96
|
body: "Innehåll"
|
82
97
|
author: "Författare"
|
83
98
|
add: "Lägg till kommentar"
|
99
|
+
delete: "Radera kommentar"
|
100
|
+
delete_confirmation: "Är du säker på att du vill radera dessa kommentarer?"
|
84
101
|
resource: "Resurs"
|
85
102
|
no_comments_yet: "Inga kommentarer än."
|
86
103
|
author_missing: "Anonym"
|
87
104
|
title_content: "Kommentarer (%{count})"
|
88
105
|
errors:
|
89
|
-
empty_text: "Kommentaren sparades inte
|
106
|
+
empty_text: "Kommentaren sparades inte. Textfältet får inte vara tomt."
|
90
107
|
devise:
|
91
108
|
username:
|
92
109
|
title: "Användarnamn"
|
93
110
|
email:
|
94
|
-
title: "
|
111
|
+
title: "E-post"
|
95
112
|
subdomain:
|
96
113
|
title: "Subdomän"
|
97
114
|
password:
|
98
115
|
title: "Lösenord"
|
116
|
+
password_confirmation:
|
117
|
+
title: "Bekräfta lösenord"
|
99
118
|
sign_up:
|
100
119
|
title: "Registera"
|
101
120
|
submit: "Registera"
|
@@ -105,29 +124,29 @@
|
|
105
124
|
submit: "Inloggning"
|
106
125
|
reset_password:
|
107
126
|
title: "Glömt ditt lösenord?"
|
108
|
-
submit: "
|
127
|
+
submit: "Återställ mitt lösenord"
|
109
128
|
change_password:
|
110
129
|
title: "Ändra ditt lösenord"
|
111
130
|
submit: "Ändra mitt lösenord"
|
112
131
|
unlock:
|
113
|
-
title: "Skicka
|
114
|
-
submit: "Skicka
|
132
|
+
title: "Skicka upplåsningsinstruktioner"
|
133
|
+
submit: "Skicka upplåsningsinstruktioner"
|
115
134
|
resend_confirmation_instructions:
|
116
|
-
title: "Skicka
|
117
|
-
submit: "Skicka
|
135
|
+
title: "Skicka bekräftelseinstruktioner"
|
136
|
+
submit: "Skicka bekräftelseinstruktioner"
|
118
137
|
links:
|
119
138
|
sign_up: "Registera"
|
120
139
|
sign_in: "Logga in"
|
121
140
|
forgot_your_password: "Glömt ditt lösenord?"
|
122
141
|
sign_in_with_omniauth_provider: "Logga in med %{provider}"
|
123
|
-
resend_unlock_instructions: "Skicka
|
124
|
-
resend_confirmation_instructions: "Skicka
|
142
|
+
resend_unlock_instructions: "Skicka upplåsningsinstruktioner igen"
|
143
|
+
resend_confirmation_instructions: "Skicka bekräftningsinstruktioner igen"
|
125
144
|
unsupported_browser:
|
126
|
-
headline: "
|
127
|
-
recommendation: "Vi rekommenderar
|
128
|
-
turn_off_compatibility_view: "Om du använder IE 9 eller senare, se till att <a href=\"https://support.microsoft.com/sv-se/help/17471\">
|
145
|
+
headline: "Observera att ActiveAdmin inte längre stödjer Internet Explorer version 8 eller lägre."
|
146
|
+
recommendation: "Vi rekommenderar att du uppgraderar till den senaste versionen av <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, eller <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
|
147
|
+
turn_off_compatibility_view: "Om du använder IE 9 eller senare, se till att <a href=\"https://support.microsoft.com/sv-se/help/17471\">stänga av \"Compatibility View\"</a>."
|
129
148
|
access_denied:
|
130
|
-
message: "Du har inte
|
149
|
+
message: "Du har inte behörighet att utföra denna åtgärd."
|
131
150
|
index_list:
|
132
151
|
table: "Tabell"
|
133
152
|
block: "Lista"
|
data/config/locales/tr.yml
CHANGED
@@ -26,17 +26,6 @@ tr:
|
|
26
26
|
buttons:
|
27
27
|
filter: "Filtrele"
|
28
28
|
clear: "Filtreleri Temizle"
|
29
|
-
predicates:
|
30
|
-
contains: "İçerir"
|
31
|
-
equals: "Eşittir"
|
32
|
-
starts_with: "İle başlar"
|
33
|
-
ends_with: "İle biter"
|
34
|
-
greater_than: "Büyüktür"
|
35
|
-
less_than: "Küçüktür"
|
36
|
-
gteq_datetime: "Büyük yada eşit"
|
37
|
-
lteq_datetime: "Küçük yada eşit"
|
38
|
-
from: "Başlangıç"
|
39
|
-
to: "Bitiş"
|
40
29
|
search_status:
|
41
30
|
headline: "Arama"
|
42
31
|
current_scope: "Kapsam:"
|
data/config/locales/uk.yml
CHANGED
@@ -25,12 +25,6 @@ uk:
|
|
25
25
|
filter: "Фільтрувати"
|
26
26
|
clear: "Очистити"
|
27
27
|
predicates:
|
28
|
-
contains: "Містить"
|
29
|
-
equals: "="
|
30
|
-
starts_with: "Починається з"
|
31
|
-
ends_with: "Закінчується"
|
32
|
-
greater_than: "більше"
|
33
|
-
less_than: "менше"
|
34
28
|
from: "від"
|
35
29
|
to: "до"
|
36
30
|
search_status:
|
data/config/locales/vi.yml
CHANGED
@@ -43,14 +43,6 @@ vi:
|
|
43
43
|
filter: "Lọc"
|
44
44
|
clear: "Xóa dữ liệu lọc"
|
45
45
|
predicates:
|
46
|
-
contains: "Có chứa"
|
47
|
-
equals: "Bằng"
|
48
|
-
starts_with: "Bắt đầu với"
|
49
|
-
ends_with: "Kết thúc bởi"
|
50
|
-
greater_than: "Lớn hơn"
|
51
|
-
less_than: "Nhỏ hơn"
|
52
|
-
gteq_datetime: "Lớn hơn hoặc bằng"
|
53
|
-
lteq_datetime: "Nhỏ hơn hoặc bằng"
|
54
46
|
from: "Từ"
|
55
47
|
to: "Đến"
|
56
48
|
scopes:
|
data/config/locales/zh-CN.yml
CHANGED
@@ -43,14 +43,6 @@
|
|
43
43
|
filter: "过滤"
|
44
44
|
clear: "清除条件"
|
45
45
|
predicates:
|
46
|
-
contains: "包含"
|
47
|
-
equals: "等于"
|
48
|
-
starts_with: "始于"
|
49
|
-
ends_with: "止于"
|
50
|
-
greater_than: "大于"
|
51
|
-
less_than: "小于"
|
52
|
-
gteq_datetime: "大于等于"
|
53
|
-
lteq_datetime: "小于等于"
|
54
46
|
from: "起"
|
55
47
|
to: "止"
|
56
48
|
scopes:
|
data/config/locales/zh-TW.yml
CHANGED
@@ -21,7 +21,7 @@ module ActiveAdmin
|
|
21
21
|
# Returns the default filter type for a given attribute. If you want
|
22
22
|
# to use a custom search method, you have to specify the type yourself.
|
23
23
|
def default_input_type(method, options = {})
|
24
|
-
if method =~ /_(eq|
|
24
|
+
if method =~ /_(eq|cont|start|end)\z/
|
25
25
|
:string
|
26
26
|
elsif klass._ransackers.key?(method.to_s)
|
27
27
|
klass._ransackers[method.to_s].type
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# include Base
|
10
10
|
# include Base::SearchMethodSelect
|
11
11
|
#
|
12
|
-
# filter :
|
12
|
+
# filter :eq, :gt, :lt
|
13
13
|
# end
|
14
14
|
#
|
15
15
|
module ActiveAdmin
|
@@ -65,7 +65,7 @@ module ActiveAdmin
|
|
65
65
|
|
66
66
|
def filter_options
|
67
67
|
filters.collect do |filter|
|
68
|
-
[I18n.t("
|
68
|
+
[I18n.t("ransack.predicates.#{filter}").capitalize, "#{method}_#{filter}"]
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -15,12 +15,12 @@ module ActiveAdmin
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def gt_input_name
|
18
|
-
|
18
|
+
"#{method}_gteq"
|
19
19
|
end
|
20
20
|
alias :input_name :gt_input_name
|
21
21
|
|
22
22
|
def lt_input_name
|
23
|
-
|
23
|
+
"#{method}_lteq"
|
24
24
|
end
|
25
25
|
|
26
26
|
def input_html_options
|
@@ -6,7 +6,7 @@ module ActiveAdmin
|
|
6
6
|
include Base
|
7
7
|
include Base::SearchMethodSelect
|
8
8
|
|
9
|
-
filter :
|
9
|
+
filter :cont, :eq, :start, :end
|
10
10
|
|
11
11
|
# If the filter method includes a search condition, build a normal string search field.
|
12
12
|
# Else, build a search field with a companion dropdown to choose a search condition from.
|
@@ -119,7 +119,7 @@ module ActiveAdmin
|
|
119
119
|
:title,
|
120
120
|
:email,
|
121
121
|
]
|
122
|
-
register :filter_method_for_large_association, "
|
122
|
+
register :filter_method_for_large_association, "_start"
|
123
123
|
|
124
124
|
# Switch between asset pipeline and webpacker assets
|
125
125
|
register :use_webpacker, false
|
@@ -28,5 +28,13 @@ module ActiveAdmin
|
|
28
28
|
self.resource_type = self.class.resource_type(resource)
|
29
29
|
end
|
30
30
|
|
31
|
+
def self.ransackable_attributes(auth_object = nil)
|
32
|
+
authorizable_ransackable_attributes
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.ransackable_associations(auth_object = nil)
|
36
|
+
authorizable_ransackable_associations
|
37
|
+
end
|
38
|
+
|
31
39
|
end
|
32
40
|
end
|
data/lib/active_admin/version.rb
CHANGED
@@ -24,7 +24,14 @@ module ActiveAdmin
|
|
24
24
|
# Attempts to call any known display name methods on the resource.
|
25
25
|
# See the setting in `application.rb` for the list of methods and their priority.
|
26
26
|
def display_name(resource)
|
27
|
-
|
27
|
+
unless resource.nil?
|
28
|
+
result = render_in_context(resource, display_name_method_for(resource))
|
29
|
+
if result.to_s&.strip&.present?
|
30
|
+
ERB::Util.html_escape(result)
|
31
|
+
else
|
32
|
+
ERB::Util.html_escape(render_in_context(resource, DISPLAY_NAME_FALLBACK))
|
33
|
+
end
|
34
|
+
end
|
28
35
|
end
|
29
36
|
|
30
37
|
# Looks up and caches the first available display name method.
|
@@ -102,10 +102,6 @@ module ActiveAdmin
|
|
102
102
|
form_builder.object
|
103
103
|
end
|
104
104
|
|
105
|
-
def form_buffers
|
106
|
-
raise "'form_buffers' has been removed from ActiveAdmin::FormBuilder, please read https://github.com/activeadmin/activeadmin/blob/master/docs/5-forms.md for details."
|
107
|
-
end
|
108
|
-
|
109
105
|
private
|
110
106
|
|
111
107
|
def create_another_checkbox
|
@@ -40,13 +40,7 @@ module ActiveAdmin
|
|
40
40
|
protected
|
41
41
|
|
42
42
|
def default_title
|
43
|
-
|
44
|
-
|
45
|
-
if title.blank?
|
46
|
-
title = "#{active_admin_config.resource_label} ##{resource.id}"
|
47
|
-
end
|
48
|
-
|
49
|
-
title
|
43
|
+
display_name(resource)
|
50
44
|
end
|
51
45
|
|
52
46
|
module DefaultMainContent
|
data/lib/active_admin.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:
|
4
|
+
version: 3.0.0
|
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: 2023-
|
18
|
+
date: 2023-07-15 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -145,20 +145,20 @@ dependencies:
|
|
145
145
|
requirements:
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
148
|
+
version: '4.0'
|
149
149
|
- - "<"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '5'
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: '4.0'
|
159
159
|
- - "<"
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: '
|
161
|
+
version: '5'
|
162
162
|
description: The administration framework for Ruby on Rails.
|
163
163
|
email:
|
164
164
|
- deivid.rodriguez@riseup.net
|
@@ -490,7 +490,6 @@ files:
|
|
490
490
|
- lib/generators/active_admin/webpacker/templates/active_admin.scss
|
491
491
|
- lib/generators/active_admin/webpacker/templates/print.scss
|
492
492
|
- lib/generators/active_admin/webpacker/webpacker_generator.rb
|
493
|
-
- lib/ransack_ext.rb
|
494
493
|
- vendor/assets/javascripts/jquery-ui/data.js
|
495
494
|
- vendor/assets/javascripts/jquery-ui/disable-selection.js
|
496
495
|
- vendor/assets/javascripts/jquery-ui/escape-selector.js
|
data/lib/ransack_ext.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# This sets up aliases for old Metasearch query methods so they behave
|
3
|
-
# identically to the versions given in Ransack.
|
4
|
-
#
|
5
|
-
Ransack.configure do |config|
|
6
|
-
{ "contains" => "cont", "starts_with" => "start", "ends_with" => "end" }.each do |old, current|
|
7
|
-
config.add_predicate old, Ransack::Constants::DERIVED_PREDICATES.detect { |q, _| q == current }[1]
|
8
|
-
end
|
9
|
-
|
10
|
-
{ "equals" => "eq", "greater_than" => "gt", "less_than" => "lt" }.each do |old, current|
|
11
|
-
config.add_predicate old, arel_predicate: current
|
12
|
-
end
|
13
|
-
|
14
|
-
config.add_predicate "gteq_datetime",
|
15
|
-
arel_predicate: "gteq",
|
16
|
-
formatter: ->(v) { v.beginning_of_day }
|
17
|
-
|
18
|
-
config.add_predicate "lteq_datetime",
|
19
|
-
arel_predicate: "lt",
|
20
|
-
formatter: ->(v) { v + 1.day }
|
21
|
-
end
|