Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ActiveStorage::Blob#representation #30868

Merged
merged 1 commit into from Oct 12, 2017
Merged

Introduce ActiveStorage::Blob#representation #30868

merged 1 commit into from Oct 12, 2017

Conversation

georgeclaghorn
Copy link
Contributor

You often want to display a thumbnail for a file of indeterminate type. This method returns an ActiveStorage::Preview instance for a previewable blob or an ActiveStorage::Variant instance for an image blob, making it easier to do that.

@georgeclaghorn georgeclaghorn merged commit 445c682 into rails:master Oct 12, 2017
@georgeclaghorn georgeclaghorn deleted the activestorage-representation branch October 12, 2017 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant