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



22
23
24
# File 'activestorage/lib/active_storage/reflection.rb', line 22

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