Fix Guides.to_array in Ruby 1.8.
In 1.9 the Hash#select method returns a Hash, but in 1.8 it returns an array which can be converted to a hash using Hash[] (when passed a hash it will just pass through) - so now the code will produce a hash in both 1.8 and 1.9.
Loading
Please register or sign in to comment