Sha256: 19aba1a5e09b4ad9814c45d4415d5553e1b057b31c489f4ea316b2bd599f2929
Contents?: true
Size: 250 Bytes
Versions: 2
Compression:
Stored size: 250 Bytes
Contents
class Post include ActiveModel::Validations include ActiveModel::Validations::Callbacks attr_accessor :title, :url, :comment def initialize(attributes = {}) attributes.each do |key, value| send "#{key}=", value end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validatious-0.4.0 | spec/support/models/post.rb |
validatious-0.3.0 | spec/support/models/post.rb |