rails/rails — pull request #13632 by tinogomes (2014-01-08 17:50:51+00:00)
Title: Adding Hash#compact and Hash#compact! methods

Example:
hash = { :a => true, :b => false, :c => nil }
hash.compact # => { :a => true, :b => false }