Sha256: 86c6c64a64d82e48692114c2d0f1a48b99dc9414ca99a22f212ccb19d9737296

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

module Thredded
  class UserTopicRead < ActiveRecord::Base
    belongs_to :topic
    belongs_to :user, class_name: Thredded.user_class
    belongs_to :farthest_post,
      class_name: 'Thredded::Post', foreign_key: 'post_id'
    validates :user_id, uniqueness: { scope: :topic }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thredded-0.0.12 app/models/thredded/user_topic_read.rb
thredded-0.0.10 app/models/thredded/user_topic_read.rb
thredded-0.0.9 app/models/thredded/user_topic_read.rb
thredded-0.0.8 app/models/thredded/user_topic_read.rb
thredded-0.0.7 app/models/thredded/user_topic_read.rb
thredded-0.0.6 app/models/thredded/user_topic_read.rb
thredded-0.0.5 app/models/thredded/user_topic_read.rb
thredded-0.0.4 app/models/thredded/user_topic_read.rb
thredded-0.0.3 app/models/thredded/user_topic_read.rb