Removed deprecated RAILS_ENV and .all(:condition =>). Fix for get_links_from_text to get passed an annotation valued content instead of annotation object.