W3cubDocs

/Ruby on Rails 7.0

class ActiveStorage::Attached

Parent:
Object

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.

Attributes

name[R]
record[R]

Public Class Methods

new(name, record) Show source
# File activestorage/lib/active_storage/attached.rb, line 11
def initialize(name, record)
  @name, @record = name, record
end

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.