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
Product.scoped.limit(2).decorate
=> #<Draper::CollectionDecorator of ProductDecorator for [...]>
But i expect Draper::CollectionDecorator of inferred decorators where each Product was decorated with its own decorator.
2. DecorateAssocation
If i do in console:
Product.first.decorate.similar_products
=> #<Draper::CollectionDecorator of ProductDecorator for [...]>
But i also expect Draper::CollectionDecorator of inferred decorators
As i know, some time ago, in commit 44f4c18 first trouble was fixed. But it doesn't work for second trouble
The text was updated successfully, but these errors were encountered:
In last tag (1.1.0) i have problems with STI, both with decorating collection and decorating association.
I have next models:
Product and Product::Package are STI, so:
and so on
And i have decorators:
If i do in console:
But i expect Draper::CollectionDecorator of inferred decorators where each Product was decorated with its own decorator.
2. DecorateAssocation
If i do in console:
But i also expect Draper::CollectionDecorator of inferred decorators
As i know, some time ago, in commit 44f4c18 first trouble was fixed. But it doesn't work for second trouble
The text was updated successfully, but these errors were encountered: