Skip to content

Commit

Permalink
Fix updating attachments in Rails 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Fodoj authored Nov 17, 2021
1 parent 8f7e425 commit badddfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/comfy/cms/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def assign_label

def process_attachment
return if @file.blank?
attachment.attach(@file)
self.attachment = @file
end

end

0 comments on commit badddfc

Please sign in to comment.