You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if a model is using attr_protected (instead of attr_accessible) - its impossible to use the Rails 4.0 inheritance syntax for generating Single Table Inheritance classes.
The without_protection => true option is honoured by attr_accessible, but the subclass_for_attributes? in inheritance.rb ignores this option, so still does checks against the attr_protected attributes + the defaults of 'id' and 'type'.
This means the type attribute cannot get assigned, removing the ability to create STI models.