Sha256: fdd25d9ea5c065f0347bb88e4f95205876aa4b4258553a72d108d8c615b1ba9e
Contents?: true
Size: 482 Bytes
Versions: 13
Compression:
Stored size: 482 Bytes
Contents
object @variant attributes *variant_attributes cache [I18n.locale, @current_user_roles.include?('admin'), 'big_variant', root_object] extends "spree/api/variants/small" node :total_on_hand do root_object.total_on_hand end child(root_object.stock_items.accessible_by(current_ability) => :stock_items) do attributes :id, :count_on_hand, :stock_location_id, :backorderable attribute :available? => :available node(:stock_location_name) { |si| si.stock_location.name } end
Version data entries
13 entries across 13 versions & 1 rubygems