lib/yuyi/core.rb in yuyi-1.0.8 vs lib/yuyi/core.rb in yuyi-1.1.3
- old
+ new
@@ -17,9 +17,13 @@
#
# Destructively convert all keys to symbols, as long as they respond
# to +to_sym+. This includes the keys from the root hash and from all
# nested hashes.
#
+ # DEPRECATION
+ # required for: ruby 1.8.7
+ # can be replaced with activesupport ~4.0
+ #
def deep_symbolize_keys!
deep_transform_keys!{ |key| key.to_sym rescue key }
end
def deep_stringify_keys!