mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 15:16:19 +08: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