1 2 3 4 5 6 7
module UserFromEmail private def user_from_email : User? email.value.try do |value| UserQuery.new.email(value).first? end end end