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