Includes description in Sanitizable

This commit is contained in:
kikito
2016-05-20 12:41:26 +02:00
parent 40ae4efe26
commit 06f48b6fdd
3 changed files with 4 additions and 8 deletions

View File

@@ -6,6 +6,10 @@ module Sanitizable
before_validation :sanitize_tag_list
end
def description
super.try :html_safe
end
protected
def sanitize_description

View File

@@ -59,10 +59,6 @@ class Debate < ActiveRecord::Base
"#{id}-#{title}".parameterize
end
def description
super.try :html_safe
end
def likes
cached_votes_up
end

View File

@@ -89,10 +89,6 @@ class Proposal < ActiveRecord::Base
summary
end
def description
super.try :html_safe
end
def total_votes
cached_votes_up + physical_votes
end