Random Things in Random Time
Ruby hash.with_indifferent_access

Different behavior in 1.8.7 and 1.8.6 with Rails 1.2.6

» {:sent => 1, “sent” => 0}.with_indifferent_access

=> {“sent”=>0}

» RUBY_VERSION

=> “1.8.6”

» RAILS_GEM_VERSION

=> “1.2.6”

» {:sent => 1, “sent” => 0}.with_indifferent_access

=> {“sent”=>1}

» RUBY_VERSION

=> “1.8.7”

» RAILS_GEM_VERSION

=> “1.2.6”

  1. amishyn posted this