lib/ddr/index/field.rb in ddr-models-2.4.0.rc2 vs lib/ddr/index/field.rb in ddr-models-2.4.0.rc3

- old
+ new

@@ -14,10 +14,20 @@ end super(name) end def label - I18n.t "ddr.index.fields.#{base}", default: base.titleize + I18n.t "#{i18n_base}.label", default: base.titleize + end + + def heading + I18n.t "#{i18n_base}.heading", default: base + end + + private + + def i18n_base + "ddr.index.fields.#{base}" end end end