active_storage_validations icon indicating copy to clipboard operation
active_storage_validations copied to clipboard

[SpoofingDetection] Issue

Open Mth0158 opened this issue 1 year ago • 2 comments

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

Mth0158 avatar Oct 21 '24 09:10 Mth0158

@MaksJS thanks for reporting the issue, I'll investigate it this week to fix it shortly :)

Mth0158 avatar Oct 21 '24 09:10 Mth0158

@Mth0158 Thanks for your reactivity 👍 don't hesitate if you need more informations

MaksJS avatar Oct 21 '24 09:10 MaksJS

FYI @MaksJS I am making the PR. It takes a bit longer than expected, but it should arrive soon ;)

Mth0158 avatar Nov 06 '24 11:11 Mth0158