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.
This commit is contained in:
Stephan Kaag 2013-07-03 21:43:29 +02:00
parent ba0bd934ba
commit 7cc7116680

View file

@ -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