Sha256: 928284772bcc30a578fb7c20b14ef8c02c53bf313a7a7fc81723cb307871d146
Contents?: true
Size: 517 Bytes
Versions: 18
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true module GraphqlDevise module MountMethod module OptionValidators class SkipOnlyValidator def initialize(options:) @options = options end def validate! if [@options.skip, @options.only].all?(&:present?) raise( GraphqlDevise::InvalidMountOptionsError, "Can't specify both `skip` and `only` options when mounting the route." ) end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems