rails/rails — pull request #7789 by senny (2012-09-29 18:24:21+00:00)
Title: resource and resources do no longer modify passed options

this is a patch for #7777. I could not modify the shared `apply_common_behavior_for` method because the outer methods rely on the fact, that those keys are deleted. Adding the `dup` call inside `apply_common_behavior_for` resultated in 8 error when running the tests.

I added two test cases to make sure the options are not modified.