]> cat aescling's git repositories - mastodon.git/commit
Make the paperclip filename interpolator smarter about the :original style
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 5 Mar 2017 22:03:49 +0000 (23:03 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 5 Mar 2017 22:03:49 +0000 (23:03 +0100)
commitebc01bf0f61e58648ea7bfd4c915b4f373761e1d
tree1ecf34678650b7d7fb3058e36e7d15b0d7905973
parent85fce04d1b4353c3645c15967d222cdcdb488dfd
Make the paperclip filename interpolator smarter about the :original style
If an :original gets converted into another format, it would get saved as
original_filename *anyway*, so generating the extension is pointless and
yields bad results for when you change the style definition later. This way,
old gifs will still have correct URLs
config/initializers/paperclip.rb