+ def user_avatar_file_path(user)
+ image = user && user.image
+ if image && image.file?
+ return image.path(:small)
+ else
+ return "#{Rails.root}/app/assets/images/users/images/small.png"
+ end
+ end
+
+ def with_recipient_locale(recipient)
+ I18n.with_locale Locale.available.preferred(recipient.preferred_languages) do