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

Version Path
c80_yax-0.1.0.25 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.24 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.23 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.22 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.21 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.20 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.18 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.17 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.16 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.15 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.14 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.13 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.12 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.11 app/helpers/c80_yax/items/shared/item_view_helper.rb
c80_yax-0.1.0.10 app/helpers/c80_yax/items/shared/item_view_helper.rb