rails/rails — pull request #12692 by dmathieu (2013-10-29 16:05:30+00:00)
Title: Add session#fetch

This adds a `#fetch` method to the `session` object.

session.fetch(:value, 'default')

I've made this fetch behave like [Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch), which means it takes either a default value, a block or no value.