1

How to use Draper with Inherited Resources?

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.

just so
  • 1,088
  • 2
  • 11
  • 23

1 Answers1

0

You could have a look to this discussion in Draper's Github:

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

Such
  • 910
  • 1
  • 9
  • 20