Class: GraphqlDevise::MountMethod::OptionsValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql_devise/mount_method/options_validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(validators = []) ⇒ OptionsValidator

Returns a new instance of OptionsValidator.



6
7
8
# File 'lib/graphql_devise/mount_method/options_validator.rb', line 6

def initialize(validators = [])
  @validators = validators
end

Instance Method Details

#validate!Object



10
11
12
# File 'lib/graphql_devise/mount_method/options_validator.rb', line 10

def validate!
  @validators.each(&:validate!)
end