Sha256: 2460b945e474b9f5a296497c70336434bba479cc58602a86febfc05b496e4454

Contents?: true

Size: 456 Bytes

Versions: 15

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Validations
    class ValidatorFactory
      def self.create_validator(**options)
        options[:validator_class].new(options[:attributes],
                                      options[:options],
                                      options[:required],
                                      options[:params_scope],
                                      **options[:opts])
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/validations/validator_factory.rb
grape-2.1.3 lib/grape/validations/validator_factory.rb
grape-2.1.2 lib/grape/validations/validator_factory.rb
grape-2.1.1 lib/grape/validations/validator_factory.rb
grape-2.1.0 lib/grape/validations/validator_factory.rb
grape-2.0.0 lib/grape/validations/validator_factory.rb
grape-1.8.0 lib/grape/validations/validator_factory.rb
grape-1.7.1 lib/grape/validations/validator_factory.rb
grape-1.7.0 lib/grape/validations/validator_factory.rb
grape-1.6.2 lib/grape/validations/validator_factory.rb
grape-1.6.1 lib/grape/validations/validator_factory.rb
grape-1.6.0 lib/grape/validations/validator_factory.rb
grape-1.5.3 lib/grape/validations/validator_factory.rb
grape-1.5.2 lib/grape/validations/validator_factory.rb
grape-1.5.1 lib/grape/validations/validator_factory.rb