Revert "Remove automatic delegation of to_model."

This reverts commit 6d214b9972.
This commit is contained in:
Steve Klabnik 2012-05-14 00:08:52 -04:00
parent 6d214b9972
commit 0ad8a07ce6
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ module Draper::ActiveModelSupport
end
end
end
base.class_eval do
def to_model
self
end
end
end
end
end