Created
May 24, 2011 14:51
-
-
Save shtirlic/988848 to your computer and use it in GitHub Desktop.
Add milliseconds (by default) for to_xml method on date fields
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
class ActiveSupport::TimeWithZone | |
alias_method :original_xmlschema , :xmlschema | |
def xmlschema(fraction_digits = 3) | |
original_xmlschema(fraction_digits) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment