instance method
operations
Ruby on Rails 7.1.6
Since v6.0.6 PrivateSignature
operations()
No documentation comment.
Source
# File activestorage/lib/active_storage/transformers/image_processing_transformer.rb, line 32
def operations
transformations.each_with_object([]) do |(name, argument), list|
if ActiveStorage.variant_processor == :mini_magick
validate_transformation(name, argument)
end
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 command.
ERROR
end
if argument.present?
list << [ name, argument ]
end
end
end
Defined in activestorage/lib/active_storage/transformers/image_processing_transformer.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Transformers::ImageProcessingTransformer