Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many classes that both provide proxy access to the blob association for a record.
# File activestorage/lib/active_storage/attached.rb, line 13
def initialize(name, record, dependent:)
@name, @record, @dependent = name, record, dependent
© 2004–2018 David Heinemeier HanssonLicensed under the MIT License.