From: Markus Schirp Date: 2011-08-24T22:21:33+09:00 Subject: Re: Any model-validation library without ActiveSupport dependency? The dm-validations is subjected to be used with non datamapper models. It has support for plain old ruby objects. For example I am already using it with virtus. On Wed, Aug 24, 2011 at 09:46:34PM +0900, Richard Conroy wrote: > On Wed, Aug 24, 2011 at 12:42 PM, Alexey Petrushin wrote: > > > Thanks. > > > > But it has dependency on the dm-core (DataMapper), so it seems that it > > can be used with DataMapper only. > > > > > Model validations by their nature are very intimate with the ORM. > > Another approach may be to use something like bureaucrat (an ORM agnostic > form helper) or validations that are at the controller/view level. > > It is not DRY, as those validations are not performed in console or through > an API layer, but a lot of the benefit of validations occurs between the > user and the keyboard. > > regards, > Richard > > -- > http://richardconroy.blogspot.com | http://twitter.com/RichardConroy