method
subclass_from_attributes?
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::Inheritance::ClassMethods
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