DB search for a value which can be nil/blank

November 13, 2018

User.where(first_name: name.presence)
DB search for a value which can be nil/blank - November 13, 2018 - {"name"=>"Stanislav Knyazev", "email"=>"extazystas@gmail.com"}