method

operations

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ImageProcessingTransformer
operations() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/transformers/image_processing_transformer.rb, line 29
        def operations
          transformations.each_with_object([]) do |(name, argument), list|
            if name.to_s == "combine_options"
              raise ArgumentError, <<~ERROR.squish
                Active Storage's ImageProcessing transformer doesn't support :combine_options,
                as it always generates a single ImageMagick command.
              ERROR
            end

            if argument.present?
              list << [ name, argument ]
            end
          end
        end
Register or log in to add new notes.