Sha256: 2c7b7abed83ba6683115345051cb4a28ac77d00f490488d3fb42507ac7dc5e5e
Contents?: true
Size: 620 Bytes
Versions: 45
Compression:
Stored size: 620 Bytes
Contents
object @variant attributes *variant_attributes cache [I18n.locale, Spree::StockLocation.accessible_by(current_ability).pluck(:id).sort.join(":"), 'big_variant', root_object] extends "spree/api/variants/small" node :total_on_hand do root_object.total_on_hand end child :variant_properties => :variant_properties do attributes *variant_property_attributes 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
45 entries across 45 versions & 1 rubygems