Sha256: d1a1a5d1176c68dd8ba099ddd0876f3efaa595be1d0894a1ed9cbdaabdbdbed2
Contents?: true
Size: 619 Bytes
Versions: 15
Compression:
Stored size: 619 Bytes
Contents
module C80Yax module Items module Shared 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 end
Version data entries
15 entries across 15 versions & 1 rubygems