Fix mass-assign error for rails 4 compatibility