Fix check_forbidden_attributes for rails 3