Class: DataMapper::Property

Inherits:
Object show all
Defined in:
lib/dm-validations.rb,
lib/dm-validations/auto_validate.rb

Class Method Summary collapse

Class Method Details

.new(model, name, options = {}, type = nil) ⇒ Object



40
41
42
43
44
# File 'lib/dm-validations.rb', line 40

def self.new(model, name, options = {}, type = nil)
  property = super
  property.model.auto_generate_validations(property)
  property
end