Sha256: 38d218c56e352e02b4bbb96729b57d313eb6029477025b9c12a687bd9635e0ef

Contents?: true

Size: 200 Bytes

Versions: 5

Compression:

Stored size: 200 Bytes

Contents

class Comment < ApplicationRecord

  # ---------------------------------------- Associations

  belongs_to :user
  belongs_to :post

  has_one :post_author, :through => :post, :source => :author

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 spec/dummy/app/models/comment.rb
notify_on-1.0.4 spec/dummy/app/models/comment.rb
notify_on-1.0.3 spec/dummy/app/models/comment.rb
notify_on-1.0.2 spec/dummy/app/models/comment.rb
notify_on-1.0.1 spec/dummy/app/models/comment.rb