carnival 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,11 @@
|
|
7
7
|
%li.search_item
|
8
8
|
.search_field
|
9
9
|
.label
|
10
|
-
|
10
|
+
- label_field = presenter.get_field(field)
|
11
|
+
- if presenter.relation_field?(label_field)
|
12
|
+
= label_tag key, t("activerecord.attributes.#{label_field.name}")
|
13
|
+
- else
|
14
|
+
= label_tag key, t("activerecord.attributes.#{presenter.full_model_name}.#{key}")
|
11
15
|
.field
|
12
16
|
= render '/carnival/shared/advanced_search_field', :field => field, :presenter => presenter, :value => value
|
13
17
|
%li.search_item
|
data/lib/carnival/version.rb
CHANGED