Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use clone to copy class methods in 1.8.7
In Ruby 1.8.7 (but not 1.8.6 or 1.9), Object#dup does not copy an object's singleton methods. CUrrently, resources_controller exposes this difference with a duped module that lacks the included callback of its original. This can be worked around by simply invoking #clone instead, which does not suffer from this problem.
- Loading branch information