method

subclass_from_attributes?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ClassMethods

Method deprecated or moved

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

subclass_from_attributes?(attrs) private

Detect the subclass from the inheritance column of attrs. If the inheritance column value is not self or a valid subclass, raises ActiveRecord::SubclassNotFound If this is a StrongParameters hash, and access to inheritance_column is not permitted, this will ignore the inheritance column and return nil

Show source
Register or log in to add new notes.