ikusei/Goldencobra — pull request #10 by 5minpause (2013-08-20 16:10:15+00:00)
Title: Refactor related object

Creates a new RelatedObject Class to get rid of many if/else:
`self.article_type.present? && self.article_type_form_file.present? && self.respond_to?(self.article_type_form_file.downcase)`
another example:

related_object = self.get_related_object
if related_object && related_object.respond_to?(:fulltext_searchable_text)
related_object.fulltext_searchable_text
else
" "
end