From: Alexey Petrushin Date: 2011-08-24T22:41:53+09:00 Subject: Re: Any model-validation library without ActiveSupport dependency? > Model validations by their nature are very intimate with the ORM. Hmm, I see this from a little different point - validations is nothing more than a set of DSL and rules to define expectations about Ruby objects. It has a very little to do with ORM (only: valid?, errors & a little of sugar-syntax, and even all these methods are ORM agnostic by their nature). I forked the 'jnunemaker-validatable' (latest updated version of old validatable gem) and removed all the ActiveRecord stuff from there, tests are passed and it seems to work (I pushed it as the validatable2 gem). > The dm-validations is subjected to be used with non datamapper models. It has support for plain old ruby objects. > The dm-validations is subjected to be used with non datamapper models. It has support for plain old ruby objects. Maybe it's applicable also to plain objects, but it still requires dm-core and it adds unnecessary dependencies and potentially can cause incompatibilities. -- Posted via http://www.ruby-forum.com/.