Class: DataMapper::Property
- 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 45 46 |
# File 'lib/dm-validations.rb', line 40 def self.new(model, name, = {}, type = nil) property = super property.model.auto_generate_validations(property) # FIXME: explicit return needed for YARD to parse this properly return property end |