Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Loading development environment (Rails 2.3.2)
- >> v = Variant.new
- => #<Variant id: nil, product_id: nil, sku: "", price: nil, weight: nil, height: nil, width: nil, depth: nil, deleted_at: nil>
- >> o = OptionValue.first
- => #<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">
- >> v.option_values = [o]
- => [#<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">]
- >> v.option_values << o
- => [#<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">, #<OptionValue id: 111, option_type_id: 462696994, name: "Large", position: 3, presentation: "L", created_at: "2009-05-19 22:55:41", updated_at: "2009-05-19 22:55:41">]
Add Comment
Please, Sign In to add comment