lib/datacaster/predefined.rb in datacaster-3.1.3 vs lib/datacaster/predefined.rb in datacaster-3.1.5
- old
+ new
@@ -52,18 +52,18 @@
def validate(active_model_validations)
Validator.new(active_model_validations)
end
def schema(base)
- ContextNodes::StructureCleaner.new(base, strategy: :fail)
+ ContextNodes::StructureCleaner.new(base, :fail)
end
def choosy_schema(base)
- ContextNodes::StructureCleaner.new(base, strategy: :remove)
+ ContextNodes::StructureCleaner.new(base, :remove)
end
def partial_schema(base)
- ContextNodes::StructureCleaner.new(base, strategy: :pass)
+ ContextNodes::StructureCleaner.new(base, :pass)
end
# 'Meta' types
def absent(error_key = nil, on: nil)