can_rate? can not deal with dimension = nil

If dimension.nil? , query should be " dimension is null ", not "dimension = '' ".