Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from anonymous/gist:129162
Created June 13, 2009 09:33
Show Gist options
  • Save radar/129163 to your computer and use it in GitHub Desktop.
Save radar/129163 to your computer and use it in GitHub Desktop.
ignore = ["id", "service_id", "created_at", "transfer_status", "updated_at", "order_response", "transfer_pw", "order_id", "transfer_id", "expiry_date", "domain_name"]
new_domain = DomainName.find_by_service_id(1230)
d.attributes.each do |x,y|
next if ignore.include?(x)
puts "#{x} -> #{y}"
new_domain.send("#{x}=", y)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment