fixes #7567 - update syntax of deprecated find_by_[attribute] dynamic methods for rails 4