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

Version Path
c80_yax-0.1.0.9 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.8 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.7 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.6 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.5 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.4 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.3 app/helpers/c80_yax/items/item_view_helper.rb
c80_yax-0.1.0.2 app/helpers/c80_yax/items/item_view_helper.rb