Sha256: 546e3220a8c5054b3e1f9eaec780c5f00ce1084e2597d4a17ad5e9009f243607
Contents?: true
Size: 558 Bytes
Versions: 8
Compression:
Stored size: 558 Bytes
Contents
module C80Yax module Items module ItemViewHelper # вывести первого попавшегося Производителя, назначенного Товару def print_vendor(itm) str = '-' # noinspection RubyResolve if itm.vendors.count > 0 str = itm.vendors.first.title end str end def item_print_full_desc(itm) r = '' # noinspection RubyResolve r = itm.full_desc if itm.full_desc.present? r.html_safe end end end end
Version data entries
8 entries across 8 versions & 1 rubygems