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
MyModelBase.all.decorate
=> Could not infer a decorator for MyModelBase. (Draper::UninferrableDecoratorError)
MyModelBase.all.first.decorate
=> #<MyModelSpecificDecorator:0x000000012116d470
Workaround
PS: Can cause some performance drawbacks in some cases
MyModelBase.all.map(&:decorate)
Expected behavior
MyModelBase.all.decorate shouldn't raise an error.
The text was updated successfully, but these errors were encountered:
Simple explanation of the bug
Workaround
PS: Can cause some performance drawbacks in some cases
Expected behavior
MyModelBase.all.decorate
shouldn't raise an error.The text was updated successfully, but these errors were encountered: