module Gossiper::Concerns::Models::UserNotification

Public Instance Methods

to() click to toggle source
# File lib/gossiper/concerns/models/user_notification.rb, line 11
def to
  if user.present?
    if user.respond_to?(:name) && user.name.present?
      "#{user.name} <#{user.email}>"
    else
      user.email
    end
  end
end