Hi, i create method "Hash.path_to(value)" It is extension for Hash
class
and this method search and return hash that have value in parameter.
Example: {:-One=>1, :two=>{:three=>3, :four=>4},
:five=>{:-Six=>6,
:three=>3}} .path_to(3) #=> {:two=>{:three=>3},
:five=>{:three=>3}} .Is
Rails 4 need this method?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/4d3fe6d8-5134-433e-a7c1-f37050a71184%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.