mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 10:16:03 +01:00
10 lines
237 B
Ruby
10 lines
237 B
Ruby
class Answer < ActiveRecord::Base
|
|
belongs_to :user
|
|
belongs_to :question
|
|
has_many :comments, dependent: :destroy
|
|
has_many :smiles, dependent: :destroy
|
|
|
|
def notification_type(*_args)
|
|
Notifications::QuestionAnswered
|
|
end
|
|
end
|