I’m getting the “WARNING: Can’t mass-assign protected attributes: type”, but I don’t have any calls to attr_accessible or attr_protected in my code.
Is there anything else that might cause an attribute to become protected?
I’m not so keen on adding all attributes to an attr_accessiblestatement, because that becomes just one more thing to maintain.
The
typeattribute is reserved for internal use for single table inheritance.You should be able to use
typeby setting theset_inheritance_column