update find_by and find_or_create_by to use rails 4 sytax