object @retailer

attributes :id, :user_id, :name, :enabled, :original_fpfile, :cropped_fpfile, :crop_selection, :photo_url, :slug, :state, :city, :payment_details

child :owner => :owner do
  attributes :id, :email, :photo_url, :name, :first_name, :last_name
end


child :teachers => :teachers do |teacher|
  attributes :id

  child :user => :user do
    attributes :id, :name, :first_name, :last_name, :photo_url
  end
end