Sha256: 92d29d1e074936a712ae4873062bc7de8ab5ea19b5dcff74ebb4d724bf8e86ce

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class NullUserTopicReadState
    def page
      1
    end

    def read?
      false
    end

    def post_read?(_post)
      false
    end

    def first_unread_post_page
      nil
    end

    def last_read_post_page
      1
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.16.0 app/models/thredded/null_user_topic_read_state.rb
thredded-0.15.5 app/models/thredded/null_user_topic_read_state.rb
thredded-0.15.4 app/models/thredded/null_user_topic_read_state.rb
thredded-0.15.3 app/models/thredded/null_user_topic_read_state.rb
thredded-0.15.2 app/models/thredded/null_user_topic_read_state.rb
thredded-0.15.1 app/models/thredded/null_user_topic_read_state.rb