method
operations
v6.0.0 -
Show latest stable
-
0 notes -
Class: ImageProcessingTransformer
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- What's this?
operations()
private
Hide source
# File activestorage/lib/active_storage/transformers/image_processing_transformer.rb, line 22 def operations transformations.each_with_object([]) do |(name, argument), list| if name.to_s == "combine_options" ActiveSupport::Deprecation.warn <<~WARNING.squish Active Storage's ImageProcessing transformer doesn't support :combine_options, as it always generates a single ImageMagick command. Passing :combine_options will not be supported in Rails 6.1. WARNING list.concat argument.keep_if { |key, value| value.present? }.to_a elsif argument.present? list << [ name, argument ] end end end