jcasimir/draper — pull request #95 by tmaier (2011-12-07 15:43:13+00:00)
Title: Overwrite #kind_of? and #is_a?

This is my try to fix issue #92, where draper interferes with rails' `FormHelper`.

I overwrote `kind_of?` and its alias `is_a?` to return true either when `DecoratedEnumerableProxy` or `@wrapped_collection` is kind of this class.

As `DecoratedEnumerableProxy` mirrors all method calls etc. to the `@wrapped_collection`, this is fine for me.

Overwriting of `kind_of?` at `Draper::Base`could be also a solution to get the cancan gem working with draper. But I have to admit, I haven't tried it yet.