fix jruby support
Merge pull request #88 from le0pard/master

Fix jruby support
Use the `for` operator to detect for `to_param` and `id` in objects