[SpoofingDetection] Issue
I've tried the new spoofing detection feature. Very nice work.
Unfortunately, I get an exception:
NoMethodError:
undefined method `attachable' for nil
when trying to update a record after creation. It's due to this line:
@record.attachment_changes[@attribute.to_s].attachable
After the first record save, when calling update! on the same record for example, @record.attachment_changes is empty ({}).
Originally posted by @MaksJS in https://github.com/igorkasyanchuk/active_storage_validations/issues/256#issuecomment-2425184130
@MaksJS thanks for reporting the issue, I'll investigate it this week to fix it shortly :)
@Mth0158 Thanks for your reactivity 👍 don't hesitate if you need more informations
FYI @MaksJS I am making the PR. It takes a bit longer than expected, but it should arrive soon ;)