Module: DataMapper::Validations::AutoValidations::ModelExtension

Defined in:
lib/dm-validations/auto_validate.rb

Instance Method Summary collapse

Instance Method Details

#propertyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
# File 'lib/dm-validations/auto_validate.rb', line 10

def property(*)
  property = super
  AutoValidations.generate_for_property(property)
  # FIXME: explicit return needed for YARD to parse this properly
  return property
end