Class: Dry::Validation::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/validation/rails/configuration.rb

Constant Summary collapse

DEFAULT_SCHEMA_PREFIX =
''
DEFAULT_SCHEMA_SUFFIX =
'Schema'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_schema_prefix: DEFAULT_SCHEMA_PREFIX, default_schema_suffix: DEFAULT_SCHEMA_SUFFIX) ⇒ Configuration

Returns a new instance of Configuration.



12
13
14
15
# File 'lib/dry/validation/rails/configuration.rb', line 12

def initialize(default_schema_prefix: DEFAULT_SCHEMA_PREFIX, default_schema_suffix: DEFAULT_SCHEMA_SUFFIX)
  @default_schema_prefix = default_schema_prefix
  @default_schema_suffix = default_schema_suffix
end

Instance Attribute Details

#default_schema_prefixObject

Returns the value of attribute default_schema_prefix.



10
11
12
# File 'lib/dry/validation/rails/configuration.rb', line 10

def default_schema_prefix
  @default_schema_prefix
end

#default_schema_suffixObject

Returns the value of attribute default_schema_suffix.



10
11
12
# File 'lib/dry/validation/rails/configuration.rb', line 10

def default_schema_suffix
  @default_schema_suffix
end