Sha256: 4296ebb74b0b6504d36dde77b64ada400e5e3c9e2bc0ed6f4cce9ee97fe67717

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

module ContentState
  class JustMarkedAsHam < JustPresumedHam
    include Singleton

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

    def memento
      'ContentState::Ham'
    end

    def to_s
      'Ham'
    end

    def just_changed_published_status?
      true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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