module RailsCom::ActionMailbox::MailExt
Public Instance Methods
from()
click to toggle source
Calls superclass method
# File lib/rails_com/action_mailbox/mail_ext.rb, line 4 def from r = super if r.is_a?(String) r.encode('utf-8', replace: '') elsif r.is_a?(Array) r.map { |i| i.encode('utf-8', replace: '') } else super end end
subject()
click to toggle source
Calls superclass method
# File lib/rails_com/action_mailbox/mail_ext.rb, line 26 def subject super.encode('utf-8', replace: '') end
to()
click to toggle source
Calls superclass method
# File lib/rails_com/action_mailbox/mail_ext.rb, line 15 def to r = super if r.is_a?(String) r.encode('utf-8', replace: '') elsif r.is_a?(Array) r.map { |i| i.encode('utf-8', replace: '') } else super end end