…e for Document, except where they would be unnecessarily redundant.
…so file id can be stored for deletion, eliminating the need for call to set() on after_save, allowing to properly work with EmbeddedDocument. Added nullify_nil_attachments_attributes() which is called before_save. Attachments are still removed from the db in destroy_nil_attachments after_save.
This reverts commit 4ecfeaa. Caused all the tests to fail and came with none of its own. Need to know more of the problem it was solving.
* class_inheritable_accessor is deprecated in Rails 3.1
Rails returns uploaded files that have content_type but sometimes returns blank. This makes it so it doesn't try to use rails blank types.