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 1 commit into from Oct 12, 2017


None yet
1 participant

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

codeclimate All good!
continuous-integration/travis-ci/pr The Travis CI build passed

@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