Fix activity feed bug introduced with Rails 4.1