Sha256: c6808a9a54b15e23b068a1af51a9552bc3d0b660d350ec466c4b92a4c6fd5592

Contents?: true

Size: 529 Bytes

Versions: 15

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultParamsValidations
        module UsingDryValidation
          module Concern
            include Support::Concern

            class_methods do
              def contract(&block)
                (@contract ||= ::Class.new(::Dry::Validation::Contract))
                  .tap { |contract| contract.class_exec(&block) if block }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.10.1 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/concern.rb