@@ -444,10 +444,6 class MailHandler < ActionMailer::Base | |||
|
444 | 444 | subject.strip[0,255] |
|
445 | 445 | end |
|
446 | 446 | |
|
447 | def self.full_sanitizer | |
|
448 | @full_sanitizer ||= HTML::FullSanitizer.new | |
|
449 | end | |
|
450 | ||
|
451 | 447 | def self.assign_string_attribute_with_limit(object, attribute, value, limit=nil) |
|
452 | 448 | limit ||= object.class.columns_hash[attribute.to_s].limit || 255 |
|
453 | 449 | value = value.to_s.slice(0, limit) |
General Comments 0
You need to be logged in to leave comments.
Login now