jcasimir/draper — pull request #239 by iblue (2012-07-16 17:30:26+00:00)
Title: Support for Sequel

Draper does currently not support Sequel (https://github.com/jeremyevans/sequel). Sequel is an alternative ORM for Rails which seems to be ones of the most widely used ones besides ActiveRecord, DataMapper and MongoMapper.

`Sequel::Model` implements an `each` method to iterate over it's attributes. Because of this, Draper treats every model as collection and refuses to decorate them. This patch fixes this and allows Sequel to be used with Draper.

I also added tests to prevent regression. All tests pass.