-
Notifications
You must be signed in to change notification settings - Fork 0
hide attributes from being included in an xml output from every instance
License
philsmy/xml_hidden
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
XmlHidden ========= Introduction goes here. hide attributes from being included in an xml output from every instance. I didn't want to have to remember to use the same :except call everywhere. Caveat: This works by overriding a serialization method. It is possible that it will affect other code that serializes out objects. It triggers on any serializer with xml in its class name... Example ======= class Foo < ActiveRecord::Base attr_xml_hidden :id # id will not be part of the xml out end Copyright (c) 2008 Phil Smy, released under the MIT license
About
hide attributes from being included in an xml output from every instance
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published