aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/hash_with_indifferent_access.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use dup to preserve previous behaviorDavid Lee2011-05-171-1/+1
|
* Optimize parts of HashWithIndifferentAccessDavid Lee2011-05-171-2/+10
|
* indifferent access should recurse Hash subclassesDavid Lee2011-05-081-2/+2
| | | | | | | | | | | | | | This commit makes Hash subclasses convert to HWIA by default for nested objects of subclasses of Hash, but allows certain subclasses to prevent nested conversion by introducing Hash#nested_under_indifferent_access that subclasses can overwrite. ActiveSupport::OrderedHash is one such subclass that overwrites +nested_under_indifferent_access+, since implicitly converting it to HWIA would remove the ordering of keys and values in Ruby 1.8. This change is necessary because commit ce9456e broke nested indifferent access conversion for all subclasses of Hash.
* Some style changessuchasurge2011-03-061-2/+2
|
* Only convert direct hash instances in hash with indifferent access.José Valim2010-11-261-4/+3
|
* HashWithIndifferentAccess should not change the subclass of an arrayLarry Sprock2010-11-141-1/+1
|
* Ensure that HashWithIndifferentAccess duplication preserves class (for ↵laserlemon2010-11-071-2/+4
| | | | | | sublclasses) and default value [#5724 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Override #store to be consistent with #[].Andrea Campi2010-10-101-0/+2
| | | | | | [#5775 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* now for real, the suite loads everything and these went unpatchedXavier Noria2010-08-191-3/+3
|
* avoids a ton o warnings ↵Xavier Noria2010-08-191-1/+6
| | | | activesupport/lib/active_support/dependencies.rb:239: warning: loading in progress, circular require considered harmful ... activesupport/lib/active_support/core_ext/hash/indifferent_access.rb while running the suite in Ruby 1.9.2
* Add missing require in ActiveSupport::HashWithIndifferentAccess [#5189 ↵Chris Hoffman2010-08-021-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* HWIA relies on Hash#symbolize_keys and #stringify_keys extensions.Santiago Pastorino2010-04-221-0/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Change HWIA#stringify_keys to return a HWIA not a HashJeremy Kemper2010-04-221-1/+1
|
* Restore HWIA#stringify_keys! and update changelogJeremy Kemper2010-04-221-2/+2
|
* HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods ↵Santiago Pastorino2010-04-221-2/+4
| | | | | | are not in the api Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Limit Array#extract_options! to directl instances of Hash and HWIA. Add ↵wycats2010-03-271-0/+4
| | | | extractable_options? to Hash so that subclasses of Hash can opt-into extractable behavior. This fixes an issue where respond_with wasn't working with subclasses of Hash that were provided by other libraries (such as CouchDB or Mashie) [#4145 state:resolved]
* ActiveSupport Hash optimizations [#2902 state:resolved]Lourens Naude2009-07-151-1/+5
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Namespace HashWithIndifferentAccessJeremy Kemper2009-03-211-105/+109
|
* Convert hash extension modules to class reopensJeremy Kemper2009-03-211-0/+129