Sha256: 4a5e089276d27d8a0b90d3374be6fc584193a8fe116007bb2fc98a1b186c47b5

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module ContentState
  class Spam < Base
    include Singleton

    def enter_hook(content)
      super
      content[:published] = false
      content[:status_confirmed] = true
    end

    def is_spam?(content)
      true
    end

    def status_confirmed?(content)
      true
    end

    def to_s
      'Spam'
    end

    def mark_as_spam(content)

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typo-4.1.1 app/models/content_state/spam.rb
typo-4.1 app/models/content_state/spam.rb