Method: ActiveValidation::Verifier#add_manifest

Defined in:
lib/active_validation/verifier.rb

#add_manifest(**hash) ⇒ Internal::Manifest+

Forward the normalized request to ORM mapper For the name field we calculate default value

param [Hash]

Returns:

  • (Internal::Manifest, Array<Internal::Manifest>)


126
127
128
129
130
131
# File 'lib/active_validation/verifier.rb', line 126

def add_manifest(**hash)
  add_defaults_for_orm_adapter(hash) do |**h|
    h[:name] ||= manifest_name_formatter.call(base_klass)
    orm_adapter.public_send :add_manifest, h
  end
end