Sha256: 4f8278f09064766249fb50ceff9da2a398e92b3525219a571d540a062804ef3f

Contents?: true

Size: 353 Bytes

Versions: 15

Compression:

Stored size: 353 Bytes

Contents

class UserThreadView < ActiveRecord::Base
  belongs_to :topic_thread
  belongs_to :user

  def self.record(user, post)
    return unless user
    UserThreadView.connection.execute("replace into user_thread_views (system_id, topic_thread_id, user_id, seen_post_id) values (#{post.system_id}, #{post.topic_thread_id}, #{user.id}, #{post.id});")
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/models/user_thread_view.rb
kit_cms-2.3.20 app/models/user_thread_view.rb
kit_cms-2.3.19 app/models/user_thread_view.rb
kit_cms-2.3.18 app/models/user_thread_view.rb
kit_cms-2.3.17 app/models/user_thread_view.rb
kit_cms-2.3.16 app/models/user_thread_view.rb
kit_cms-2.3.15 app/models/user_thread_view.rb
kit_cms-2.3.14 app/models/user_thread_view.rb
kit_cms-2.3.13 app/models/user_thread_view.rb
kit_cms-2.3.11 app/models/user_thread_view.rb
kit_cms-2.3.10 app/models/user_thread_view.rb
kit_cms-2.3.9 app/models/user_thread_view.rb
kit_cms-2.3.8 app/models/user_thread_view.rb
kit_cms-2.3.7 app/models/user_thread_view.rb
kit_cms-2.3.6 app/models/user_thread_view.rb