Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- account_information = {
- billing_country: nil,
- last_name: "Vincent",
- organization: nil,
- shipping_address: nil,
- shipping_city: nil,
- shipping_country: "",
- product_name: "Round 3, 2012 - Single",
- shipping_address_2: nil,
- shipping_zip: nil,
- billing_zip: nil,
- billing_address: nil,
- shipping_phone: nil,
- billing_address_2: nil,
- shipping_state: nil,
- billing_city: nil,
- first_name: "Margaret",
- billing_state: nil,
- product_family_name: "Rounds"
- }
- st = Statement.find(11443962)
- st.update(account_information: account_information)
- # or
- st.update_attribute(:account_information, account_information)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement