Module: Reform::Form::ActiveModel::ModelValidations

Defined in:
lib/reform/form/active_model/model_validations.rb

Defined Under Namespace

Classes: Mapping, ValidationCopier

Instance Method Summary collapse

Instance Method Details

#copy_validations_from(models) ⇒ Object



105
106
107
# File 'lib/reform/form/active_model/model_validations.rb', line 105

def copy_validations_from(models)
  ValidationCopier.copy(self, Mapping.from_representable_attrs(definitions), models)
end