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
We have an unusual use cache where having this functionality would be useful to us:
module Draper
class CollectionDecorator
module UniqueContext
def decorate_item(item)
item_decorator.call(item, context: context.clone)
end
end
prepend UniqueContext
end
end
As you can see we've currently monkey patched. Would there be any interest in a PR?
The text was updated successfully, but these errors were encountered:
We have an unusual use cache where having this functionality would be useful to us:
As you can see we've currently monkey patched. Would there be any interest in a PR?
The text was updated successfully, but these errors were encountered: