Sha256: 62a15d3e9a65278aa1b0a65915b15f012707e796a8de75868d2e149e8848faf2

Contents?: true

Size: 413 Bytes

Versions: 11

Compression:

Stored size: 413 Bytes

Contents

require 'dry/validation/schema'

module Dry
  module Validation
    class Schema::Form < Schema
      def self.configure(klass = nil, &block)
        if klass
          klass.configure do |config|
            config.input_processor = :form
            config.hash_type = :symbolized
          end
          klass
        else
          super(&block)
        end
      end

      configure(self)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dry-validation-0.11.2 lib/dry/validation/schema/form.rb
dry-validation-0.11.1 lib/dry/validation/schema/form.rb
dry-validation-0.11.0 lib/dry/validation/schema/form.rb
dry-validation-0.10.7 lib/dry/validation/schema/form.rb
dry-validation-0.10.6 lib/dry/validation/schema/form.rb
dry-validation-0.10.5 lib/dry/validation/schema/form.rb
dry-validation-0.10.4 lib/dry/validation/schema/form.rb
dry-validation-0.10.3 lib/dry/validation/schema/form.rb
dry-validation-0.10.2 lib/dry/validation/schema/form.rb
dry-validation-0.10.1 lib/dry/validation/schema/form.rb
dry-validation-0.10.0 lib/dry/validation/schema/form.rb