Created
June 13, 2009 09:31
-
-
Save anonymous/129162 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.x = y | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment