recourse 5.9.0 → 5.9.1
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/config/locales/recourse.en.yml +3 -0
- data/lib/recourse/helpers/choices.rb +6 -2
- data/lib/recourse/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: 70d04d12275cf8524fd076d13543cb7fa1bb606e317fef64d21eff5b13abf92c
|
|
4
|
+
data.tar.gz: 13ea5ed9a84fcd3e069ec8ebe613e93dff6a4c8ba7a11214fdc1539f3e98e6de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 336ac0bda118932020f25bbb5f4ac1754bdedea678fd27692689456521e457a02d75ca02ef8554d2033cf717e9e040953f3f21cc97d523efc0ab9ef3789f5409
|
|
7
|
+
data.tar.gz: e1b962b9bb79ce0409f921199e794470365d4edbbaf118a40ddf8f43f3bebacd592e0f8660d9b165901e96b0708a6be236dffb2a4675052995bf2ea9c4c8b325
|
|
@@ -18,6 +18,9 @@ en:
|
|
|
18
18
|
ago: "%{distance} ago"
|
|
19
19
|
all: All %{models}
|
|
20
20
|
all_values: All
|
|
21
|
+
# A boolean's two, as a reader reads them rather than as a database writes them.
|
|
22
|
+
affirmative: 'Yes'
|
|
23
|
+
negative: 'No'
|
|
21
24
|
# Why a model pointing several ways cannot be positioned without a word from it.
|
|
22
25
|
ambiguous_position: "%{model} points several ways, so which of them its position is
|
|
23
26
|
counted within is not the gem's to guess. Answer `recourse_siblings` with the rows
|
|
@@ -15,13 +15,17 @@ module Recourse
|
|
|
15
15
|
boolean_filter predicate, column, label if boolean_column? column
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The two a boolean admits, as
|
|
18
|
+
# The two a boolean admits, read as a reader reads them rather than as the
|
|
19
|
+
# database writes them: a menu offering `true` and `false` says what is stored
|
|
20
|
+
# and not what is being asked. A host wanting words of its own -- `Stopped` and
|
|
21
|
+
# `Reachable` over a column called `stopped` -- names them with `values:`. The
|
|
19
22
|
# way back is the bare `All`: a column called `signed` pluralizes to nothing
|
|
20
23
|
# anybody would write, so the line says what it does rather than what it is of.
|
|
21
24
|
def boolean_filter(predicate, column, label)
|
|
22
25
|
title = label || resource_model.human_attribute_name(column)
|
|
26
|
+
values = [[t('recourse.affirmative'), true], [t('recourse.negative'), false]]
|
|
23
27
|
|
|
24
|
-
filter_menu predicate, title,
|
|
28
|
+
filter_menu predicate, title, values, t('recourse.all_values')
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
def boolean_column?(column)
|
data/lib/recourse/version.rb
CHANGED