On Sep 2, 11:48 am, "Michael Koziarski" <[EMAIL PROTECTED]> wrote:
>
> We do have tests which assert that that's the result returned, but
> they've been there from the beginning:
>
> http://github.com/rails/rails/tree/86deb270953f9c5b62813d3e1938f33cc8...
>
> If you want to take a look at making that change, we can have a look
> to see if it breaks anything else.
Ok. I've done it.
# Replaces the hash with only the given keys.
def slice!(*keys)
keys = keys.map! { |key| convert_key(key) } if respond_to?
(:convert_key)
omit = slice(*self.keys - keys)
hash = slice(*keys)
replace(hash)
omit
end
I also updated the tests. Should I submit a patch? How do I proceed?
Thanks,
T.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---