@api public
# File lib/dm-validations.rb, line 128 def create(attributes = {}, *args) resource = new(attributes) resource.save(*args) resource end
@api private
# File lib/dm-validations.rb, line 117 def inherited(base) super self.validators.contexts.each do |context, validators| validators.each do |v| options = v.options.merge(:context => context) base.validators.add(v.class, v.field_name, options) end end end
Generated with the Darkfish Rdoc Generator 2.