I want to reuser ActiveRecord::Validations with out ActiveRecord::Base
How to do this ?
class TempModel
include ActiveRecord::Validations
validate_presence_of :title
end
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs