Replies: 1 comment 2 replies
-
This API would not allow you to have two attachment attributes on the same model with different uploaders. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When including dynamically instantiated modules such as
include ImageUploader::Attachment.new(:image)
, Sorbet raises an error #4002 that it can't statically analyze the class including the module.Instead of configuring the
Attachment
module in its constructor, would it be possible to configure it in a DSL?for example:
Or is there some other way to create a Sorbet-friendly way to incorporate Shrine?
(Note this was formerly a discussion on the discourse forums but it's still relevant)
Beta Was this translation helpful? Give feedback.
All reactions