1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Document :combine_options

Turns out this is still undocumented functionality.
This commit is contained in:
Robert Glaser 2018-02-07 22:58:23 +01:00
parent 5ae2ecab6d
commit 6ee504b1d7

View file

@ -8,6 +8,14 @@
# #
# ActiveStorage::Variation.new(resize: "100x100", monochrome: true, trim: true, rotate: "-90") # ActiveStorage::Variation.new(resize: "100x100", monochrome: true, trim: true, rotate: "-90")
# #
# You can also combine multiple transformations in one step, e.g. for center-weighted cropping:
#
# ActiveStorage::Variation.new(combine_options: {
# resize: "100x100^",
# gravity: "center",
# crop: "100x100+0+0",
# })
#
# A list of all possible transformations is available at https://www.imagemagick.org/script/mogrify.php. # A list of all possible transformations is available at https://www.imagemagick.org/script/mogrify.php.
class ActiveStorage::Variation class ActiveStorage::Variation
attr_reader :transformations attr_reader :transformations