Skip to content

Commit

Permalink
Mark preview_image_needed_before_processing_variants? as private API
Browse files Browse the repository at this point in the history
It looks like `preview_image_needed_before_processing_variants?` was added recently,
but it's stated as being public API.

However, it looks like it's more of an implementation detail that's not meant for Active Storage users.

So this marks it as nodoc, so we're not on the hook for maintaining it.
  • Loading branch information
tomrossi7 committed May 24, 2024
1 parent 161d98d commit 5192f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def representable?
variable? || previewable?
end

def preview_image_needed_before_processing_variants?
def preview_image_needed_before_processing_variants? # :nodoc:
previewable? && !preview_image.attached?
end

Expand Down

0 comments on commit 5192f31

Please sign in to comment.