Sha256: bd1862ba64263d8c644a1e366e79df1b0d4c074aa7723d8b25556fc9bce61024
Contents?: true
Size: 569 Bytes
Versions: 13
Compression:
Stored size: 569 Bytes
Contents
class ShopVariantsDataset < Dataset::Base def load create_record :shop_variants, :bread_states, :name => 'bread states', :options_json => ActiveSupport::JSON.encode([ 'mouldy', 'fresh' ]) create_record :shop_variants, :milk_states, :name => 'milk states', :options_json => ActiveSupport::JSON.encode([ 'cold', 'warm', 'sour' ]) create_record :shop_variants, :salad_states, :name => 'milk states', :options_json => ActiveSupport::JSON.encode([ 'fresh', 'wilted' ]) end end
Version data entries
13 entries across 13 versions & 2 rubygems