Forum: Ruby on Rails How to reuse ActiveRecord::Validations

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
gpy g. (Guest)
on 2007-06-22 05:45
I want to reuser ActiveRecord::Validations with out ActiveRecord::Base
How to do this ?

class TempModel
  include ActiveRecord::Validations
  validate_presence_of :title
end
This topic is locked and can not be replied to.