Remove use of attr_protected. Needed for rails 4 support