def conditions_hash_validations
      conditions.each do |comparator, mappings|
        errors.add(:conditions, "can't use undefined comparators") unless Scram::DSL::Definitions::COMPARATORS.keys.include? comparator.to_sym
        errors.add(:conditions, "comparators must have values of type Hash") unless mappings.is_a? Hash
      end
    end
def conditions_hash_validations
      conditions.each do |comparator, mappings|
        errors.add(:conditions, "can't use undefined comparators") unless Scram::DSL::Definitions::COMPARATORS.keys.include? comparator.to_sym
        errors.add(:conditions, "comparators must have values of type Hash") unless mappings.is_a? Hash
      end
    end
Validates that the conditions Hash follows an expected format