Skip to content

Commit

Permalink
write_temporary_identifier only if remove is changed to truthy value
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Sep 13, 2023
1 parent a273057 commit 8066ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/mounter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def blank?

def remove=(value)
@remove = value
write_temporary_identifier
write_temporary_identifier if remove?
end

def remove?
Expand Down

0 comments on commit 8066ebc

Please sign in to comment.