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
-
#attachment_changes ⇒ Object
:nodoc:.
-
#reload ⇒ Object
:nodoc:.
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included
Instance Method Details
#attachment_changes ⇒ Object
:nodoc:
176 177 178 |
# File 'activestorage/lib/active_storage/attached/model.rb', line 176 def #:nodoc: @attachment_changes ||= {} end |
#reload ⇒ Object
:nodoc:
180 181 182 |
# File 'activestorage/lib/active_storage/attached/model.rb', line 180 def reload(*) #:nodoc: super.tap { @attachment_changes = nil } end |