-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undesirable mutation of Marcel::TYPE_EXTS on processing content_type validation #356
Labels
bug
Something isn't working
Comments
@atcruice you are totally right, I was a bit hasty with this fix. It should be fixed in the 2.0.2 release that will be live today / tomorrow (and is already present on master if you want to use it straight away). |
Mth0158
added a commit
that referenced
this issue
Jan 31, 2025
…of-marceltype_exts-on-processing-content_type-validation [Validator] Fix issue with all_available_marcel_content_types mutating Marcel::TYPE_EXTS (#356)
(reopened until released) |
Released with 2.0.2 :) |
@Mth0158, thank you for resolving so promptly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
active_storage_validations/lib/active_storage_validations/content_type_validator.rb
Line 223 in 2e1c789
Marcel::TYPE_EXTS
constant.Additional contents of
Marcel::TYPE_EXTS
after loading a file containing acontent_type
validationLooking at how
all_available_marcel_content_types
is used, I reckon something like the following code might suit, without mutating Marcel's constant.The text was updated successfully, but these errors were encountered: