rails/rails — pull request #11165 by alexbartlow (2013-06-28 13:48:23+00:00)
Title: Add seek to hash for deep pluck of key

The pattern of:

params[:user] && params[:user][:groups] && params[:user][:groups][:group_id]

... really sucks. Add a method that allows easy plucking from within a hash:

params.seek(:user, :groups, :group_id)