carnival 0.2.1 → 0.2.2

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.
@@ -7,7 +7,11 @@
7
7
  %li.search_item
8
8
  .search_field
9
9
  .label
10
- = label_tag key, t("activerecord.attributes.#{presenter.full_model_name}.#{key}")
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
@@ -1,3 +1,3 @@
1
1
  module Carnival
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: