rails/rails — pull request #13027 by akshay-vishnoi (2013-11-25 08:29:29+00:00)
Title: avoiding calling of #option_value_selected? two times

In `options_for_select` we are calling `option_value_selected?` two times, whereas in `option_value_selected?` we are checking `array.include? value`.
We can save around 50% time. Here are the benchmarks: https://gist.github.com/akshay-vishnoi/7638030