attr_encodable enables you to set up defaults for what is included or excluded when you serialize an ActiveRecord object. This is especially useful for protecting private attributes when building a public API.
Flip Sasser
gem "attr_encodable", "~> 0.1.0"