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

Conversation

@georgeclaghorn
Copy link
Member

@georgeclaghorn georgeclaghorn commented Oct 12, 2017

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
2 checks passed
2 checks passed
codeclimate All good!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@georgeclaghorn georgeclaghorn deleted the georgeclaghorn:activestorage-representation branch Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.