1

継承されたリソースでDraperを使用するには?

In other words, how to call the method(#decorate) for each resource? For example @posts for #index, @post for #show?

I thought about default_scope, but everything related with Draper needs to be in the controller, not in the model, imho.

4

1 に答える 1

0

Draper の Github でこの議論を見ることができます。

https://github.com/drapergem/draper/issues/99

于 2013-08-22T13:01:42.507 に答える