Sha256: f898f2eabf1f3025c3226e2bd926a4a8dcda4182447550aa957a30036717c676
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
module ContentState class JustPresumedHam < PresumedHam include Singleton def memento 'ContentState::PresumedHam' end def enter_hook(content) logger.debug("#{content} entering state Content::JustPresumedHam") content[:published] = true content[:status_confirmed] = false end def exit_hook(content, target_state) logger.debug("#{content} leaving state Content::JustPresumedHam") end def just_published? true end def just_changed_published_status? true end def send_notifications(content) content.interested_users.each do |user| content.send_notification_to_user(user) end end def send_pings(content) content.really_send_pings end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | app/models/content_state/just_presumed_ham.rb |
typo-4.1 | app/models/content_state/just_presumed_ham.rb |