Sha256: 541dbc1d92b312c11c9d6a7ffcd93c0d5defa3acc51e94d8f94ec9063d3ba6be
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
class Topic include ActiveModel::Validations include ActiveModel::Conversion attr_accessor :title, :body, :subtitle validates :title, presence: true validates :subtitle, invisible_captcha: true def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end def persisted? false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
invisible_captcha-0.8.2 | spec/dummy/app/models/topic.rb |
invisible_captcha-0.8.1 | spec/dummy/app/models/topic.rb |
invisible_captcha-0.8.0 | spec/dummy/app/models/topic.rb |