Module: ActiveStorage::Reflection::ReflectionExtension

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add_attachment_reflection(model, name, reflection) ⇒ Object



32
33
34
# File 'activestorage/lib/active_storage/reflection.rb', line 32

def add_attachment_reflection(model, name, reflection)
  model.attachment_reflections = model.attachment_reflections.merge(name.to_s => reflection)
end