lib/gooddata/models/blueprint/dataset_blueprint.rb in gooddata-0.6.43 vs lib/gooddata/models/blueprint/dataset_blueprint.rb in gooddata-0.6.44
- old
+ new
@@ -399,10 +399,10 @@
# Validate if the dataset has more than zero anchors defined.
#
# @return [Array] array of errors
def validate_some_anchors
- find_columns_by_type(:anchor).count == 0 ? [{ type: :no_anchor, dataset: id }] : []
+ find_columns_by_type(:anchor).count.zero? ? [{ type: :no_anchor, dataset: id }] : []
end
# Validate if the dataset does not have more than one anchor defined.
#
# @return [Array] array of errors