Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Serialized methods that return nil should not be considered YAML #492
(Rebased version of #200 (commits))
The way ActiveModel computes the type of serializable methods and attributes, any that return nil will be described as being YAML.
This produces XML like:
However, in many cases, the 'type="yaml"' part is unnecessary, and potentially misleading.
With this patch, the equivalent to the above XML would be: