Method: ActiveStorage::Reflection::HasAttachedReflection#variant

Defined in:
activestorage/lib/active_storage/reflection.rb

#variant(name, transformations) ⇒ Object



6
7
8
# File 'activestorage/lib/active_storage/reflection.rb', line 6

def variant(name, transformations)
  named_variants[name] = NamedVariant.new(transformations)
end