Feature Request: Support Strings and Symbols As Arguments to image_size

#45 · open · 0 comments

View on GitHub ↗

Undistraction

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') ```

Comments