method

deprecate

rails latest stable - Class: ActiveStorage::Attached::Model

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

deprecate(action)
public

No documentation available.

# File activestorage/lib/active_storage/attached/model.rb, line 178
          def deprecate(action)
            reflection_name = proxy_association.reflection.name
            attached_name = reflection_name.to_s.partition("_").first
            ActiveSupport::Deprecation.warn(              Calling `#{action}` from `#{reflection_name}` is deprecated and will be removed in Rails 7.1.              To migrate to Rails 7.1's behavior call `#{action}` from `#{attached_name}` instead: `#{attached_name}.#{action}`..squish)
          end