class ActiveStorage::Attached::One

Public Instance Methods

variant(transformations) click to toggle source
# File lib/rails_com/active_storage/activestorage_attached.rb, line 25
def variant(transformations)
  if attachment&.variable?
    attachment.variant(transformations)
  else
    self
  end
end