use inheritable_attr for Attachment.file_class. this clones the specified class (== subclasses) and everything works as expected. you will have the original file_class when uber supports not-cloning.