From 7cc71166801efba2e53ea4b40d41b76291958fb6 Mon Sep 17 00:00:00 2001 From: Stephan Kaag Date: Wed, 3 Jul 2013 21:43:29 +0200 Subject: [PATCH] No need to include all ActionView::Helpers in Topic, we only need the sanitize helper. This also fixes a bug in Rails 4 where image_url gets accidentally overridden. --- app/models/topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/topic.rb b/app/models/topic.rb index 2a1c0eddb..5b5325fc6 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -7,7 +7,7 @@ require_dependency 'text_cleaner' require_dependency 'trashable' class Topic < ActiveRecord::Base - include ActionView::Helpers + include ActionView::Helpers::SanitizeHelper include RateLimiter::OnCreateRecord include Trashable