Skip to content

Commit

Permalink
Merge branch 'fix-attachment-without-metadata' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Mar 26, 2024
2 parents 54b9ae1 + 42ac452 commit 4c1c44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/foi_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FoiAttachment < ApplicationRecord
scope :binary, -> { where.not(content_type: AlaveteliTextMasker::TextMask) }

delegate :expire, :log_event, to: :info_request
delegate :metadata, to: :file_blob
delegate :metadata, to: :file_blob, allow_nil: true

admin_columns exclude: %i[url_part_number within_rfc822_subject hexdigest],
include: %i[metadata]
Expand Down

0 comments on commit 4c1c44f

Please sign in to comment.