Skip to content

Instantly share code, notes, and snippets.

@GeekOnCoffee
Created February 7, 2013 21:35
Show Gist options
  • Save GeekOnCoffee/4734478 to your computer and use it in GitHub Desktop.
Save GeekOnCoffee/4734478 to your computer and use it in GitHub Desktop.
child :payments => :payments do
attributes :id, :amount, :state, :payment_method_id
child :payment_method => :payment_method do
attributes :id, :name, :environment
end
end
@binaryphile
Copy link

Here's my current code:

object user

attributes *user_attributes
child :spree_roles => :spree_roles do
  attributes :name
end

@theCrab
Copy link

theCrab commented Apr 3, 2013

Has this anything to do with split_payments? in spree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment