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

Feature Request: Support Strings and Symbols As Arguments to image_size #45

Open
Undistraction opened this issue Jul 26, 2016 · 0 comments

Comments

@Undistraction
Copy link

Undistraction commented Jul 26, 2016

I'm trying to work through an issue where Paperclip Meta is storing the styles with strings rather than symbols for keys. Although I can't work out why this is happening, I think it would make sense to accept both symbols and keys as arguments to attachment.image_size as this would be consistent with the way Paperclip handles arguments to attachment.url.

At present, only strings will work if the keys are strings and only symbols will work if the keys are symbols. I think it would make sense to be able to do:

photo.image.image_size(:thumb)
photo.image.image_size('thumb')
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

No branches or pull requests

1 participant