Sha256: c7a4c7f96467c77eb0808b41fa13c18b93bc1602397c958d9e16ec27a68aafb2
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
class Draft < ActiveRecord::Base belongs_to :category belongs_to :user validates_presence_of :user_id def before_save self.subject = CGI.escapeElement(self.subject, 'script') if self.subject self.tb_url = CGI.escapeElement(self.tb_url, 'script') if self.tb_url self.body = CGI.escapeElement(self.body, 'script') if self.body end end
Version data entries
5 entries across 5 versions & 1 rubygems