update to support the find_by method like Rails 4