Skip to content

Instantly share code, notes, and snippets.

@mataki
Created May 8, 2009 06:31
Show Gist options
  • Save mataki/108678 to your computer and use it in GitHub Desktop.
Save mataki/108678 to your computer and use it in GitHub Desktop.
# SKIP rp-mode maintenance script
OpenidIdentifier.transaction do
OpenidIdentifier.all.each do |identifier|
identifier.url = OpenIdAuthentication.normalize_identifier(identifier.url)
if identifier.changed?
if identifier.save
p "update #{identifier.url}"
else
p "failure save #{identifier.url}:#{identifier.errors.full_messages.join(',')}"
end
else
p "not update #{identifier.url}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment