rails/rails — pull request #5687 by larzconwell (2012-03-31 19:53:20+00:00)
Title: Added to_range method in integer class, and made extract_options! a one-liner

I thought it would be a good idea to include a to_range method, since there are so many already like to_s, to_a, etc. Also it includes an exclude option so that the integer doesn't get included into the range.

Finally I changed `extract_options!` so that the if..else is a ternary operator now, to maybe increase some speed in methods using it.