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.
Ba608f20b6707017d9812b9b3f1406e3?d=identicon&s=25 gpy good (gpygood)
on 2007-06-22 03: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.