#325 new
Sam Smoot

Add #export_validations

Reported by Sam Smoot | May 29th, 2008 @ 02:28 PM

Allow for code like the following:

class FileResource
  include DataMapper::Resource
  property :filename, String, :nullable => false
  property :length, Integer, :nullable => false, :numeric => true
  property :content_type, String, :nullable =>false, :format => /(plain\/text|application\/octect-stream)/
end

class UploadDAO
  attr_accessor :filename, :content_type, :length
end

FileResource.export_validations(UploadDAO)

Inspired by: http://jaikoo.com/2007/11/18/upl...

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Tags