class One
Ruby on Rails 8.1.2
Since v5.2.8.1Active Storage Attached One
Representation of a single attachment to a model.
Inherits from
Methods (defined here)
- # attach
- # attached?
- # attachment
- # blank?
- # detach
- # purge
- # purge_later
Private methods
(2)
Implementation detail — not part of the public API.
- # detach_one
- # purge_one
Methods (inherited)
From ActiveStorage::Attached (1)
- self. new
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs