Class: Dry::Validation::Rails::Configuration
- Inherits:
-
Object
- Object
- Dry::Validation::Rails::Configuration
- Defined in:
- lib/dry/validation/rails/configuration.rb
Constant Summary collapse
- DEFAULT_SCHEMA_PREFIX =
''
- DEFAULT_SCHEMA_SUFFIX =
'Schema'
Instance Attribute Summary collapse
-
#default_schema_prefix ⇒ Object
Returns the value of attribute default_schema_prefix.
-
#default_schema_suffix ⇒ Object
Returns the value of attribute default_schema_suffix.
Instance Method Summary collapse
-
#initialize(default_schema_prefix: DEFAULT_SCHEMA_PREFIX, default_schema_suffix: DEFAULT_SCHEMA_SUFFIX) ⇒ Configuration
constructor
A new instance of Configuration.
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_prefix ⇒ Object
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_suffix ⇒ Object
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 |