Sha256: 9e54094e878f6ca523c71510d62faed18d3af2b7e165841068aae1a6be6da8f2
Contents?: true
Size: 278 Bytes
Versions: 1
Compression:
Stored size: 278 Bytes
Contents
module Discussion class ThreadRead < ActiveRecord::Base attr_accessible :read, :thread_id, :user_id belongs_to :user, class_name: Discussion.user_class belongs_to :thread, class_name: 'Discussion::Thread' scope :by, ->(user) { where(user_id: user) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discussion-0.0.1 | app/models/discussion/thread_read.rb |