Revert "Remove automatic delegation of to_model."
This reverts commit 6d214b9972
.
This commit is contained in:
parent
6d214b9972
commit
0ad8a07ce6
|
@ -19,6 +19,12 @@ module Draper::ActiveModelSupport
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
base.class_eval do
|
||||
def to_model
|
||||
self
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue