継承されたリソースで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.