Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class Comment < ActiveRecord::Base
belongs_to :message
belongs_to :user

has_many :actions, as: :trackable

delegate :project, to: :message

scope :recent, -> { order(created_at: :desc).limit(5) }
Expand Down
2 changes: 0 additions & 2 deletions app/models/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ class Message < ActiveRecord::Base

has_many :message_subscriptions, dependent: :destroy
has_many :subscribers, through: :message_subscriptions

has_many :actions, as: :trackable
end