mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
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:
parent
ba0bd934ba
commit
7cc7116680
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user