Sha256: 994ae09b89b21be5f29c346d137251fddedaddae1f6050deb90639e46d0745ad
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
module ContentState class PresumedHam < Base include Singleton def enter_hook(content) super content[:published] = true content[:status_confirmed] = false end def published?(content) true end def withdraw(content) mark_as_spam(content) end def confirm_classification(content) mark_as_ham(content) end def mark_as_ham(content) content.state = Factory.new(:ham) true end def to_s 'Ham?' end def send_notifications(content) content.interested_users.each do |user| content.send_notification_to_user(user) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | app/models/content_state/presumed_ham.rb |