fix bug in rails 4 where present helper cannot deal with relations
remove deprecated whitelist_attributes option