Created
May 8, 2009 06:31
-
-
Save mataki/108678 to your computer and use it in GitHub Desktop.
# SKIP rp-mode maintenance script
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
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