You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the source code of the ActiveDecorator::ViewContext.run_with method, it seems to be made to allow the decorators to access a view context to use helpers, not to automatically decorate your models.
You still need to manually decorate your models, which I'll advise you to do with the following method : ActiveDecorator::Decorator.instance.decorate(u), as documented in the README, instead of manually extending your instance, since the #decorate method does more than just extending the model instance.
From the readme, it says:
However, what I did is the following
but maually extend would work:
Am i missing sth?
Regards
The text was updated successfully, but these errors were encountered: