Make attachment_definitions as a class_attribute for rails 3.2 compatibility