Class: ActiveStorage::Reflection::HasAttachedReflection
- Inherits:
-
ActiveRecord::Reflection::MacroReflection
- Object
- ActiveRecord::Reflection::MacroReflection
- ActiveStorage::Reflection::HasAttachedReflection
show all
- Defined in:
- lib/active_storage/reflection.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#variant(name, transformations) ⇒ Object
6
7
8
|
# File 'lib/active_storage/reflection.rb', line 6
def variant(name, transformations)
variants[name] = transformations
end
|
#variants ⇒ Object
10
11
12
|
# File 'lib/active_storage/reflection.rb', line 10
def variants
@variants ||= {}
end
|