Replace find_by(id) method with plain ActiveRecord syntax