Rails 当已有一个 draper 对象时, 怎么 remove 掉 这个 draper 回到原有的类型去?

ginchenorlee · April 12, 2013 · Last by ginchenorlee replied at April 12, 2013 · 2314 hits

给一个 model 建立了一个对应的装饰,这个对象的的 class 就成了 draper 了,如果我 在使用 这个被装饰的 对象后,不想用这个装饰了,想 remove 掉 这个装饰,回到它原来的模型去,有办法实现不?

draper = draper.source

You need to Sign in before reply, if you don't have an account, please Sign up first.