This project is archived and is in readonly mode.
ActiveModel::Dirty#changes should return a HashWithIndifferentAccess
Reported by Jacob Atzen | March 12th, 2010 @ 09:38 AM | in 3.0.2
I've been bitten by the fact that #changes currently returns a plain Ruby hash instead of a HashWithIndifferentAccess. To keep things consistent I've created a patch that changes this.
Comments and changes to this ticket
- 
            
        Jacob Atzen March 12th, 2010 @ 09:43 AM- Tag changed from activemodel to activemodel, patch
 
- 
            
        
- 
            
        
- 
         Yehuda Katz (wycats) March 27th, 2010 @ 09:27 AM- Assigned user set to José Valim
- Milestone cleared.
 
- 
         Repository March 27th, 2010 @ 10:07 AM- State changed from new to resolved
 (from [a5d637d86c02d911b07d48bdbfbc4f23fb59d720]) ActiveModel::Dirty#changes should return a HashWithIndifferentAccess [#4157 state:resolved] Keep the Rails style of inject Signed-off-by: José Valim jose.valim@gmail.com 
 http://github.com/rails/rails/commit/a5d637d86c02d911b07d48bdbfbc4f...
- 
         Jeremy Kemper October 15th, 2010 @ 11:01 PM- Milestone set to 3.0.2
- Importance changed from  to Low
 
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 
         4157 
          ActiveModel::Dirty#changes should return a HashWithIndifferentAccess
        (from [a5d637d86c02d911b07d48bdbfbc4f23fb59d720])
ActiveM... 4157 
          ActiveModel::Dirty#changes should return a HashWithIndifferentAccess
        (from [a5d637d86c02d911b07d48bdbfbc4f23fb59d720])
ActiveM...
 José Valim
      José Valim
 Yehuda Katz (wycats)
      Yehuda Katz (wycats)