Sha256: 0d67b5def455f91d92aa0ece867749e5bd3a95744939d22ef8329018d39ce9bb

Contents?: true

Size: 454 Bytes

Versions: 54

Compression:

Stored size: 454 Bytes

Contents

module Workarea
  module Search
    class Admin
      class InventorySku < Search::Admin
        def type
          'inventory_sku'
        end

        def search_text
          model.name
        end

        def jump_to_text
          "#{model.id} (#{model.available} available)"
        end

        def jump_to_position
          12
        end

        def facets
          super.merge(policy: model.policy)
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
workarea-core-3.4.45 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.44 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.43 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.42 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.41 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.40 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.18 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.39 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.17 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.38 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.16 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.37 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.15 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.36 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.14 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.35 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.13 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.34 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.5.12 app/models/workarea/search/admin/inventory_sku.rb
workarea-core-3.4.33 app/models/workarea/search/admin/inventory_sku.rb