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 = {}) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/dm-validations.rb', line 21 def self.new(model, name, = {}) property = super property.model.auto_generate_validations(property) # FIXME: explicit return needed for YARD to parse this properly return property end |