module ActionText::Encryption
def encryptable_rich_texts
def encryptable_rich_texts @encryptable_rich_texts ||= self.class.rich_text_association_names .filter_map { |attribute_name| send(attribute_name) } .find_all { |record| record.is_a?(ActionText::EncryptedRichText) } end