Created
March 28, 2011 20:46
-
-
Save v6ak/891235 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
| class FormatsExtension(formats: Formats){ | |
| def +(newParameterNameReader: ParameterNameReader) = new Formats{ | |
| override val dateFormat = formats.dateFormat | |
| override val parameterNameReader = newParameterNameReader | |
| override val typeHintFieldName = formats.typeHintFieldName | |
| override val fieldSerializers = formats.fieldSerializers | |
| override val customSerializers = formats.customSerializers | |
| override val typeHints = formats.typeHints | |
| } | |
| } | |
| object FormatsExtension{ | |
| implicit def convert(formats:Formats) = new FormatsExtension(formats) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment