123456789_123456789_123456789_123456789_123456789_

Class: ActiveStorage::Attached

Relationships & Source Files
Namespace Children
Modules:
Classes:
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: activestorage/lib/active_storage/attached.rb

Overview

Abstract base class for the concrete One and Many classes that both provide proxy access to the blob association for a record.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(name, record, dependent:) ⇒ Attached

[ GitHub ]

  
# File 'activestorage/lib/active_storage/attached.rb', line 13

def initialize(name, record, dependent:)
  @name, @record, @dependent = name, record, dependent
end

Instance Attribute Details

#dependent (readonly)

[ GitHub ]

  
# File 'activestorage/lib/active_storage/attached.rb', line 11

attr_reader :name, :record, :dependent

#name (readonly)

[ GitHub ]

  
# File 'activestorage/lib/active_storage/attached.rb', line 11

attr_reader :name, :record, :dependent

#record (readonly)

[ GitHub ]

  
# File 'activestorage/lib/active_storage/attached.rb', line 11

attr_reader :name, :record, :dependent