Module: ActiveStorage::Attached::Model

Extended by:
ActiveSupport::Concern
Defined in:
activestorage/lib/active_storage/attached/model.rb

Overview

Provides the class-level DSL for declaring an Active Record model’s attachments.

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included

Instance Method Details

#attachment_changesObject

:nodoc:



176
177
178
# File 'activestorage/lib/active_storage/attached/model.rb', line 176

def attachment_changes #:nodoc:
  @attachment_changes ||= {}
end

#reloadObject

:nodoc:



180
181
182
# File 'activestorage/lib/active_storage/attached/model.rb', line 180

def reload(*) #:nodoc:
  super.tap { @attachment_changes = nil }
end