ransack 2.1.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/SECURITY.md +12 -0
- data/.github/workflows/cronjob.yml +105 -0
- data/.github/workflows/rubocop.yml +20 -0
- data/.github/workflows/test.yml +154 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +44 -0
- data/CHANGELOG.md +55 -1
- data/CONTRIBUTING.md +13 -11
- data/Gemfile +23 -17
- data/README.md +119 -52
- data/bug_report_templates/test-ransack-scope-and-column-same-name.rb +78 -0
- data/bug_report_templates/test-ransacker-arel-present-predicate.rb +71 -0
- data/docs/img/create_release.png +0 -0
- data/docs/release_process.md +20 -0
- data/lib/polyamorous/{activerecord_5.2.1_ruby_2 → activerecord_5.2_ruby_2}/join_association.rb +2 -9
- data/lib/polyamorous/{activerecord_5.2.1_ruby_2 → activerecord_5.2_ruby_2}/join_dependency.rb +25 -3
- data/lib/polyamorous/activerecord_5.2_ruby_2/reflection.rb +11 -0
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb +80 -0
- data/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +1 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb +74 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb +93 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_dependency.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/reflection.rb +1 -0
- data/lib/{polyamorous.rb → polyamorous/polyamorous.rb} +4 -5
- data/lib/ransack.rb +3 -3
- data/lib/ransack/adapters/active_record/base.rb +4 -0
- data/lib/ransack/adapters/active_record/context.rb +67 -68
- data/lib/ransack/adapters/active_record/ransack/constants.rb +18 -3
- data/lib/ransack/adapters/active_record/ransack/context.rb +2 -6
- data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +12 -5
- data/lib/ransack/adapters/active_record/ransack/translate.rb +1 -1
- data/lib/ransack/configuration.rb +17 -1
- data/lib/ransack/constants.rb +3 -5
- data/lib/ransack/context.rb +19 -18
- data/lib/ransack/helpers.rb +1 -1
- data/lib/ransack/helpers/form_builder.rb +8 -14
- data/lib/ransack/helpers/form_helper.rb +1 -1
- data/lib/ransack/locale/az.yml +1 -1
- data/lib/ransack/locale/ca.yml +70 -0
- data/lib/ransack/locale/es.yml +22 -22
- data/lib/ransack/locale/fa.yml +70 -0
- data/lib/ransack/locale/fi.yml +71 -0
- data/lib/ransack/locale/sk.yml +70 -0
- data/lib/ransack/nodes/attribute.rb +1 -1
- data/lib/ransack/nodes/condition.rb +7 -1
- data/lib/ransack/nodes/grouping.rb +1 -1
- data/lib/ransack/nodes/sort.rb +1 -1
- data/lib/ransack/nodes/value.rb +1 -1
- data/lib/ransack/predicate.rb +2 -1
- data/lib/ransack/search.rb +3 -1
- data/lib/ransack/translate.rb +115 -115
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +8 -23
- data/spec/blueprints/articles.rb +1 -1
- data/spec/blueprints/comments.rb +1 -1
- data/spec/blueprints/notes.rb +1 -1
- data/spec/blueprints/tags.rb +1 -1
- data/spec/console.rb +5 -5
- data/spec/helpers/polyamorous_helper.rb +3 -8
- data/spec/helpers/ransack_helper.rb +1 -1
- data/spec/{ransack → polyamorous}/join_association_spec.rb +7 -0
- data/spec/{ransack → polyamorous}/join_dependency_spec.rb +18 -7
- data/spec/{ransack → polyamorous}/join_spec.rb +0 -0
- data/spec/ransack/adapters/active_record/base_spec.rb +9 -6
- data/spec/ransack/adapters/active_record/context_spec.rb +60 -18
- data/spec/ransack/configuration_spec.rb +10 -0
- data/spec/ransack/helpers/form_helper_spec.rb +16 -16
- data/spec/ransack/nodes/grouping_spec.rb +2 -2
- data/spec/ransack/predicate_spec.rb +54 -2
- data/spec/ransack/search_spec.rb +127 -15
- data/spec/spec_helper.rb +10 -5
- data/spec/support/schema.rb +14 -3
- metadata +41 -137
- data/.travis.yml +0 -37
- data/lib/polyamorous/activerecord_5.0_ruby_2/join_association.rb +0 -2
- data/lib/polyamorous/activerecord_5.0_ruby_2/join_dependency.rb +0 -2
- data/lib/polyamorous/activerecord_5.1_ruby_2/join_association.rb +0 -32
- data/lib/polyamorous/activerecord_5.1_ruby_2/join_dependency.rb +0 -112
- data/lib/polyamorous/activerecord_5.2.0_ruby_2/join_association.rb +0 -32
- data/lib/polyamorous/activerecord_5.2.0_ruby_2/join_dependency.rb +0 -113
@@ -13,6 +13,18 @@ module Ransack
|
|
13
13
|
formatter: proc { |v| "%#{escape_wildcards(v)}%" }
|
14
14
|
}
|
15
15
|
],
|
16
|
+
['i_cont'.freeze, {
|
17
|
+
arel_predicate: 'matches'.freeze,
|
18
|
+
formatter: proc { |v| "%#{escape_wildcards(v.downcase)}%" },
|
19
|
+
case_insensitive: true
|
20
|
+
}
|
21
|
+
],
|
22
|
+
['not_i_cont'.freeze, {
|
23
|
+
arel_predicate: 'does_not_match'.freeze,
|
24
|
+
formatter: proc { |v| "%#{escape_wildcards(v.downcase)}%" },
|
25
|
+
case_insensitive: true
|
26
|
+
}
|
27
|
+
],
|
16
28
|
['start'.freeze, {
|
17
29
|
arel_predicate: 'matches'.freeze,
|
18
30
|
formatter: proc { |v| "#{escape_wildcards(v)}%" }
|
@@ -85,7 +97,7 @@ module Ransack
|
|
85
97
|
arel_predicate: proc { |v| v ? EQ : NOT_EQ },
|
86
98
|
compounds: false,
|
87
99
|
type: :boolean,
|
88
|
-
validator: proc { |v| BOOLEAN_VALUES.include?(v)},
|
100
|
+
validator: proc { |v| BOOLEAN_VALUES.include?(v) },
|
89
101
|
formatter: proc { |v| nil }
|
90
102
|
}
|
91
103
|
],
|
@@ -102,8 +114,11 @@ module Ransack
|
|
102
114
|
# replace % \ to \% \\
|
103
115
|
def escape_wildcards(unescaped)
|
104
116
|
case ActiveRecord::Base.connection.adapter_name
|
105
|
-
when "Mysql2".freeze
|
106
|
-
# Necessary for
|
117
|
+
when "Mysql2".freeze
|
118
|
+
# Necessary for MySQL
|
119
|
+
unescaped.to_s.gsub(/([\\%_])/, '\\\\\\1')
|
120
|
+
when "PostgreSQL".freeze
|
121
|
+
# Necessary for PostgreSQL
|
107
122
|
unescaped.to_s.gsub(/([\\%_.])/, '\\\\\\1')
|
108
123
|
else
|
109
124
|
unescaped
|
@@ -28,14 +28,10 @@ module Ransack
|
|
28
28
|
@join_type = options[:join_type] || Polyamorous::OuterJoin
|
29
29
|
@search_key = options[:search_key] || Ransack.options[:search_key]
|
30
30
|
@associations_pot = {}
|
31
|
+
@tables_pot = {}
|
31
32
|
@lock_associations = []
|
32
33
|
|
33
|
-
|
34
|
-
@base = @join_dependency.instance_variable_get(:@join_root)
|
35
|
-
else
|
36
|
-
@base = @join_dependency.join_root
|
37
|
-
@engine = @base.base_klass.arel_engine
|
38
|
-
end
|
34
|
+
@base = @join_dependency.instance_variable_get(:@join_root)
|
39
35
|
end
|
40
36
|
|
41
37
|
def bind_pair_for(key)
|
@@ -30,7 +30,7 @@ module Ransack
|
|
30
30
|
def format_predicate(attribute)
|
31
31
|
arel_pred = arel_predicate_for_attribute(attribute)
|
32
32
|
arel_values = formatted_values_for_attribute(attribute)
|
33
|
-
predicate = attribute.
|
33
|
+
predicate = attr_value_for_attribute(attribute).public_send(arel_pred, arel_values)
|
34
34
|
|
35
35
|
if in_predicate?(predicate)
|
36
36
|
predicate.right = predicate.right.map do |pr|
|
@@ -43,16 +43,23 @@ module Ransack
|
|
43
43
|
|
44
44
|
def in_predicate?(predicate)
|
45
45
|
return unless defined?(Arel::Nodes::Casted)
|
46
|
-
predicate.class == Arel::Nodes::In
|
46
|
+
predicate.class == Arel::Nodes::In || predicate.class == Arel::Nodes::NotIn
|
47
47
|
end
|
48
48
|
|
49
49
|
def casted_array?(predicate)
|
50
|
-
predicate.respond_to?(:
|
50
|
+
(predicate.respond_to?(:value) && predicate.value.is_a?(Array)) || # Rails 6.1
|
51
|
+
(predicate.respond_to?(:val) && predicate.val.is_a?(Array)) # Rails 5.2, 6.0
|
51
52
|
end
|
52
53
|
|
53
54
|
def format_values_for(predicate)
|
54
|
-
predicate.
|
55
|
-
|
55
|
+
value = if predicate.respond_to?(:value)
|
56
|
+
predicate.value # Rails 6.1
|
57
|
+
else
|
58
|
+
predicate.val # Rails 5.2, 6.0
|
59
|
+
end
|
60
|
+
|
61
|
+
value.map do |val|
|
62
|
+
val.is_a?(String) ? Arel::Nodes.build_quoted(val) : val
|
56
63
|
end
|
57
64
|
end
|
58
65
|
|
@@ -33,7 +33,8 @@ module Ransack
|
|
33
33
|
:up_arrow => '▼'.freeze,
|
34
34
|
:down_arrow => '▲'.freeze,
|
35
35
|
:default_arrow => nil,
|
36
|
-
:sanitize_scope_args => true
|
36
|
+
:sanitize_scope_args => true,
|
37
|
+
:postgres_fields_sort_option => nil
|
37
38
|
}
|
38
39
|
|
39
40
|
def configure
|
@@ -141,6 +142,21 @@ module Ransack
|
|
141
142
|
self.options[:sanitize_scope_args] = boolean
|
142
143
|
end
|
143
144
|
|
145
|
+
# The `NULLS FIRST` and `NULLS LAST` options can be used to determine
|
146
|
+
# whether nulls appear before or after non-null values in the sort ordering.
|
147
|
+
#
|
148
|
+
# User may want to configure it like this:
|
149
|
+
#
|
150
|
+
# Ransack.configure do |c|
|
151
|
+
# c.postgres_fields_sort_option = :nulls_first # or :nulls_last
|
152
|
+
# end
|
153
|
+
#
|
154
|
+
# See this feature: https://www.postgresql.org/docs/13/queries-order.html
|
155
|
+
#
|
156
|
+
def postgres_fields_sort_option=(setting)
|
157
|
+
self.options[:postgres_fields_sort_option] = setting
|
158
|
+
end
|
159
|
+
|
144
160
|
# By default, Ransack displays sort order indicator arrows in sort links.
|
145
161
|
# The default may be globally overridden in an initializer file like
|
146
162
|
# `config/initializers/ransack.rb` as follows:
|
data/lib/ransack/constants.rb
CHANGED
@@ -36,7 +36,7 @@ module Ransack
|
|
36
36
|
'lt'.freeze, 'lteq'.freeze,
|
37
37
|
'gt'.freeze, 'gteq'.freeze,
|
38
38
|
'in'.freeze, 'not_in'.freeze
|
39
|
-
|
39
|
+
].freeze
|
40
40
|
A_S_I = ['a'.freeze, 's'.freeze, 'i'.freeze].freeze
|
41
41
|
|
42
42
|
EQ = 'eq'.freeze
|
@@ -45,12 +45,10 @@ module Ransack
|
|
45
45
|
NOT_EQ_ALL = 'not_eq_all'.freeze
|
46
46
|
CONT = 'cont'.freeze
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
RAILS_5_2_0 = '5.2.0'.freeze
|
48
|
+
RAILS_6_0 = '6.0.0'.freeze
|
49
|
+
RAILS_6_1 = '6.1.0'.freeze
|
51
50
|
|
52
51
|
RANSACK_SLASH_SEARCHES = 'ransack/searches'.freeze
|
53
52
|
RANSACK_SLASH_SEARCHES_SLASH_SEARCH = 'ransack/searches/search'.freeze
|
54
53
|
end
|
55
54
|
end
|
56
|
-
|
data/lib/ransack/context.rb
CHANGED
@@ -64,26 +64,28 @@ module Ransack
|
|
64
64
|
|
65
65
|
def traverse(str, base = @base)
|
66
66
|
str ||= ''.freeze
|
67
|
-
|
68
|
-
|
67
|
+
segments = str.split(Constants::UNDERSCORE)
|
68
|
+
unless segments.empty?
|
69
69
|
remainder = []
|
70
70
|
found_assoc = nil
|
71
|
-
|
71
|
+
until found_assoc || segments.empty?
|
72
72
|
# Strip the _of_Model_type text from the association name, but hold
|
73
73
|
# onto it in klass, for use as the next base
|
74
74
|
assoc, klass = unpolymorphize_association(
|
75
75
|
segments.join(Constants::UNDERSCORE)
|
76
|
-
|
76
|
+
)
|
77
77
|
if found_assoc = get_association(assoc, base)
|
78
78
|
base = traverse(
|
79
79
|
remainder.join(Constants::UNDERSCORE), klass || found_assoc.klass
|
80
|
-
|
80
|
+
)
|
81
81
|
end
|
82
82
|
|
83
83
|
remainder.unshift segments.pop
|
84
84
|
end
|
85
|
-
|
86
|
-
|
85
|
+
unless found_assoc
|
86
|
+
raise(UntraversableAssociationError,
|
87
|
+
"No association matches #{str}")
|
88
|
+
end
|
87
89
|
end
|
88
90
|
|
89
91
|
klassify(base)
|
@@ -95,18 +97,17 @@ module Ransack
|
|
95
97
|
path = []
|
96
98
|
segments = str.split(Constants::UNDERSCORE)
|
97
99
|
association_parts = []
|
98
|
-
|
99
|
-
while segments.
|
100
|
-
|
101
|
-
|
100
|
+
unless segments.empty?
|
101
|
+
while !segments.empty? &&
|
102
|
+
!base.columns_hash[segments.join(Constants::UNDERSCORE)] &&
|
103
|
+
association_parts << segments.shift
|
102
104
|
assoc, klass = unpolymorphize_association(
|
103
105
|
association_parts.join(Constants::UNDERSCORE)
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
end
|
106
|
+
)
|
107
|
+
next unless found_assoc = get_association(assoc, base)
|
108
|
+
path += association_parts
|
109
|
+
association_parts = []
|
110
|
+
base = klassify(klass || found_assoc)
|
110
111
|
end
|
111
112
|
end
|
112
113
|
|
@@ -127,7 +128,7 @@ module Ransack
|
|
127
128
|
|
128
129
|
def ransackable_attribute?(str, klass)
|
129
130
|
klass.ransackable_attributes(auth_object).include?(str) ||
|
130
|
-
|
131
|
+
klass.ransortable_attributes(auth_object).include?(str)
|
131
132
|
end
|
132
133
|
|
133
134
|
def ransackable_association?(str, klass)
|
data/lib/ransack/helpers.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'ransack/helpers/form_builder'
|
2
|
-
require 'ransack/helpers/form_helper'
|
2
|
+
require 'ransack/helpers/form_helper'
|
@@ -7,17 +7,11 @@ module ActionView::Helpers::Tags
|
|
7
7
|
class Base
|
8
8
|
private
|
9
9
|
if defined? ::ActiveRecord
|
10
|
-
|
11
|
-
|
12
|
-
object.send @method_name if object
|
13
|
-
|
14
|
-
|
15
|
-
def value
|
16
|
-
if @allow_method_names_outside_object
|
17
|
-
object.send @method_name if object && object.respond_to?(@method_name, true)
|
18
|
-
else
|
19
|
-
object.send @method_name if object
|
20
|
-
end
|
10
|
+
def value
|
11
|
+
if @allow_method_names_outside_object
|
12
|
+
object.send @method_name if object && object.respond_to?(@method_name, true)
|
13
|
+
else
|
14
|
+
object.send @method_name if object
|
21
15
|
end
|
22
16
|
end
|
23
17
|
end
|
@@ -51,9 +45,9 @@ module Ransack
|
|
51
45
|
end
|
52
46
|
|
53
47
|
def attribute_select(options = nil, html_options = nil, action = nil)
|
54
|
-
options
|
55
|
-
html_options
|
56
|
-
action
|
48
|
+
options ||= {}
|
49
|
+
html_options ||= {}
|
50
|
+
action ||= Constants::SEARCH
|
57
51
|
default = options.delete(:default)
|
58
52
|
raise ArgumentError, formbuilder_error_message(
|
59
53
|
"#{action}_select") unless object.respond_to?(:context)
|
@@ -145,7 +145,7 @@ module Ransack
|
|
145
145
|
private
|
146
146
|
|
147
147
|
def parameters_hash(params)
|
148
|
-
if ::ActiveRecord::VERSION::MAJOR
|
148
|
+
if ::ActiveRecord::VERSION::MAJOR >= 5 && params.respond_to?(:to_unsafe_h)
|
149
149
|
params.to_unsafe_h
|
150
150
|
else
|
151
151
|
params
|
data/lib/ransack/locale/az.yml
CHANGED
@@ -0,0 +1,70 @@
|
|
1
|
+
ca:
|
2
|
+
ransack:
|
3
|
+
search: "cercar"
|
4
|
+
predicate: "predicat"
|
5
|
+
and: "i"
|
6
|
+
or: "o"
|
7
|
+
any: "qualsevol"
|
8
|
+
all: "tots"
|
9
|
+
combinator: "combinador"
|
10
|
+
attribute: "atribut"
|
11
|
+
value: "valor"
|
12
|
+
condition: "condició"
|
13
|
+
sort: "ordenar"
|
14
|
+
asc: "ascendent"
|
15
|
+
desc: "descendent"
|
16
|
+
predicates:
|
17
|
+
eq: "és igual a"
|
18
|
+
eq_any: "és igual a qualsevol"
|
19
|
+
eq_all: "és igual a tots"
|
20
|
+
not_eq: "no és igual a"
|
21
|
+
not_eq_any: "no és igual a qualsevol"
|
22
|
+
not_eq_all: "no és igual a tots"
|
23
|
+
matches: "coincideix"
|
24
|
+
matches_any: "coincideix a qualsevol"
|
25
|
+
matches_all: "coincideix a tots"
|
26
|
+
does_not_match: "no coincideix"
|
27
|
+
does_not_match_any: "no coincideix amb cap"
|
28
|
+
does_not_match_all: "no coincideix amb tots"
|
29
|
+
lt: "menor que"
|
30
|
+
lt_any: "menor que qualsevol"
|
31
|
+
lt_all: "menor o igual a"
|
32
|
+
lteq: "menor que o igual a"
|
33
|
+
lteq_any: "menor o igual a qualsevol"
|
34
|
+
lteq_all: "menor o igual a tots"
|
35
|
+
gt: "major que"
|
36
|
+
gt_any: "major que qualsevol"
|
37
|
+
gt_all: "major que tots"
|
38
|
+
gteq: "major que o igual a"
|
39
|
+
gteq_any: "major que o igual a qualsevol"
|
40
|
+
gteq_all: "major que o igual a tots"
|
41
|
+
in: "en"
|
42
|
+
in_any: "en qualsevol"
|
43
|
+
in_all: "en tots"
|
44
|
+
not_in: "no en"
|
45
|
+
not_in_any: "no en qualsevol"
|
46
|
+
not_in_all: "no en tots"
|
47
|
+
cont: "conté"
|
48
|
+
cont_any: "conté qualsevol"
|
49
|
+
cont_all: "conté tots"
|
50
|
+
not_cont: "no conté"
|
51
|
+
not_cont_any: "no conté cap"
|
52
|
+
not_cont_all: "no conté tota"
|
53
|
+
start: "comença per"
|
54
|
+
start_any: "comença per qualsevol"
|
55
|
+
start_all: "comença per tot"
|
56
|
+
not_start: "no comença per"
|
57
|
+
not_start_any: "no comença per qualsevol"
|
58
|
+
not_start_all: "no comença per tot"
|
59
|
+
end: "acaba en"
|
60
|
+
end_any: "acaba en qualsevol"
|
61
|
+
end_all: "acaba en tot"
|
62
|
+
not_end: "no acaba en"
|
63
|
+
not_end_any: "no acaba en qualsevol"
|
64
|
+
not_end_all: "no acaba en tot"
|
65
|
+
'true': "és verdader"
|
66
|
+
'false': "és fals"
|
67
|
+
present: "és present"
|
68
|
+
blank: "està en blanc"
|
69
|
+
'null': "és nul"
|
70
|
+
not_null: "no és nul"
|
data/lib/ransack/locale/es.yml
CHANGED
@@ -6,11 +6,11 @@ es:
|
|
6
6
|
or: "o"
|
7
7
|
any: "cualquier"
|
8
8
|
all: "todos"
|
9
|
-
combinator: "
|
9
|
+
combinator: "combinador"
|
10
10
|
attribute: "atributo"
|
11
11
|
value: "valor"
|
12
12
|
condition: "condición"
|
13
|
-
sort: "
|
13
|
+
sort: "ordenar"
|
14
14
|
asc: "ascendente"
|
15
15
|
desc: "descendente"
|
16
16
|
predicates:
|
@@ -19,12 +19,12 @@ es:
|
|
19
19
|
eq_all: "es igual a todos"
|
20
20
|
not_eq: "no es igual a"
|
21
21
|
not_eq_any: "no es igual a cualquier"
|
22
|
-
not_eq_all: "no es
|
23
|
-
matches: "
|
24
|
-
matches_any: "
|
25
|
-
matches_all: "
|
26
|
-
does_not_match: "no coincide"
|
27
|
-
does_not_match_any: "no coincide con
|
22
|
+
not_eq_all: "no es igual a todos"
|
23
|
+
matches: "coincide con"
|
24
|
+
matches_any: "coincide con cualquier"
|
25
|
+
matches_all: "coincide con todos"
|
26
|
+
does_not_match: "no coincide con"
|
27
|
+
does_not_match_any: "no coincide con ninguno"
|
28
28
|
does_not_match_all: "no coincide con todos"
|
29
29
|
lt: "menor que"
|
30
30
|
lt_any: "menor que cualquier"
|
@@ -48,23 +48,23 @@ es:
|
|
48
48
|
cont_any: "contiene cualquier"
|
49
49
|
cont_all: "contiene todos"
|
50
50
|
not_cont: "no contiene"
|
51
|
-
not_cont_any: "no contiene
|
52
|
-
not_cont_all: "no contiene
|
51
|
+
not_cont_any: "no contiene ninguno"
|
52
|
+
not_cont_all: "no contiene todos"
|
53
53
|
start: "comienza con"
|
54
54
|
start_any: "comienza con cualquier"
|
55
|
-
start_all: "comienza con
|
56
|
-
not_start: "no
|
55
|
+
start_all: "comienza con todos"
|
56
|
+
not_start: "no comienza con"
|
57
57
|
not_start_any: "no comienza con cualquier"
|
58
|
-
not_start_all: "no
|
59
|
-
end: "termina
|
60
|
-
end_any: "termina
|
61
|
-
end_all: "termina
|
62
|
-
not_end: "no termina
|
63
|
-
not_end_any: "no termina
|
64
|
-
not_end_all: "no termina
|
58
|
+
not_start_all: "no comienza con todos"
|
59
|
+
end: "termina en"
|
60
|
+
end_any: "termina en cualquier"
|
61
|
+
end_all: "termina en todos"
|
62
|
+
not_end: "no termina en"
|
63
|
+
not_end_any: "no termina en cualquier"
|
64
|
+
not_end_all: "no termina en todos"
|
65
65
|
'true': "es verdadero"
|
66
66
|
'false': "es falso"
|
67
|
-
present: "
|
67
|
+
present: "está presente"
|
68
68
|
blank: "está en blanco"
|
69
|
-
'null': "es
|
70
|
-
not_null: "no es
|
69
|
+
'null': "es nulo"
|
70
|
+
not_null: "no es nulo"
|
@@ -0,0 +1,70 @@
|
|
1
|
+
fa:
|
2
|
+
ransack:
|
3
|
+
search: "جستجو"
|
4
|
+
predicate: "پیش فرض"
|
5
|
+
and: "و"
|
6
|
+
or: "یا"
|
7
|
+
any: "هر کدام"
|
8
|
+
all: "همه"
|
9
|
+
combinator: "ترکیب کننده"
|
10
|
+
attribute: "ویژگی"
|
11
|
+
value: "مقدار"
|
12
|
+
condition: "شرایط"
|
13
|
+
sort: "مرتب سازی"
|
14
|
+
asc: "صعودی"
|
15
|
+
desc: "نزولی"
|
16
|
+
predicates:
|
17
|
+
eq: "مساوی با"
|
18
|
+
eq_any: "مساوی با حداقل یکی"
|
19
|
+
eq_all: "مساوی با همه"
|
20
|
+
not_eq: "غیر مساوی با"
|
21
|
+
not_eq_any: "غیر مساوی با هیچ کدام"
|
22
|
+
not_eq_all: "غیر مساوی با همه"
|
23
|
+
matches: "مشابهات"
|
24
|
+
matches_any: "شبیه حداقل یکی"
|
25
|
+
matches_all: "شبیه همه"
|
26
|
+
does_not_match: "بدون شباهت"
|
27
|
+
does_not_match_any: "شبیه یکی هم نیست"
|
28
|
+
does_not_match_all: "شبیه هیچ کدام نیست"
|
29
|
+
lt: "کمتر از"
|
30
|
+
lt_any: "کمتر از حداقل یکی"
|
31
|
+
lt_all: "کمتر از همه"
|
32
|
+
lteq: "کمتر یا مساوی با"
|
33
|
+
lteq_any: "کمتر یا مساوی با حداقل یکی"
|
34
|
+
lteq_all: "کمتر یا مساوی با همه"
|
35
|
+
gt: "بیشتر از"
|
36
|
+
gt_any: "بیشتر از حداقل یکی"
|
37
|
+
gt_all: "بیشتر از همه"
|
38
|
+
gteq: "بیشتر یا مساوی با"
|
39
|
+
gteq_any: "بیشتر یا مساوی با حداقل یکی"
|
40
|
+
gteq_all: "بیشتر یا مساوی با همه"
|
41
|
+
in: "در"
|
42
|
+
in_any: "در حداقل یکی"
|
43
|
+
in_all: "در همه"
|
44
|
+
not_in: "نه در"
|
45
|
+
not_in_any: "نه حتی در یکی"
|
46
|
+
not_in_all: "در هیچ کدام"
|
47
|
+
cont: "حاوی"
|
48
|
+
cont_any: "حاوی حداقل یکی"
|
49
|
+
cont_all: "حاوی همه"
|
50
|
+
not_cont: "حاوی این نمیشود"
|
51
|
+
not_cont_any: "حاوی حتی یکی هم نمیشود"
|
52
|
+
not_cont_all: "حاوی هیچ کدام نمیشود"
|
53
|
+
start: "شروع می شود با"
|
54
|
+
start_any: "شروع می شود با حداقل یکی"
|
55
|
+
start_all: "شروع می شود با همه"
|
56
|
+
not_start: "شروع نمی شود با"
|
57
|
+
not_start_any: "شروع نمی شود با حتی یکی"
|
58
|
+
not_start_all: "شروع نمی شود با هیچ کدام"
|
59
|
+
end: "به پایان می رسد با"
|
60
|
+
end_any: "به پایان می رسد با حداقل یکی"
|
61
|
+
end_all: "به پایان می رسد با همه"
|
62
|
+
not_end: "پایان نمی یابد با"
|
63
|
+
not_end_any: "پایان نمی یابد با حتی یکی"
|
64
|
+
not_end_all: "پایان نمی یابد با هیچ کدام"
|
65
|
+
'true': "درست است"
|
66
|
+
'false': "نادرست است"
|
67
|
+
present: "موجود است"
|
68
|
+
blank: "خالی است"
|
69
|
+
'null': "صفر است"
|
70
|
+
not_null: "صفر نیست"
|