drapergem/draper — pull request #357 by cheald (2012-12-01 09:14:39+00:00)
Title: #to_model should alias to source, not self

Somewhere along the line, `#to_model` was broken to point to the decorator instance, rather than the decorated model. This breaks a whole heap of things, mostly having to do with URL generation when you pass a decorated model to `url_for`. This patch restores the old stable functionality.