lets describe my situation: i have two classes which have a lot same
validations defined … to stay DRY i want to put them in one place and
use it within both ActiveRecord classes.
i think subclassing is not possible because both classes are AR of
tried to include a module but this didnt work either:
validates_length_of :a, :in => 1…10
validates_length_of :b, :in => 1…20
class A < AR::Base
thx for help!