mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:29:52 +01:00
we don't need this
This commit is contained in:
parent
6a914d4394
commit
c56177cd10
2 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
class Notification < ActiveRecord::Base
|
||||
belongs_to :recipient, class_name: 'User'
|
||||
belongs_to :target, :polymorphic => true
|
||||
belongs_to :target, polymorphic: true
|
||||
|
||||
class << self
|
||||
def for(recipient, options={})
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
class Notifications::QuestionAnswered < Notification
|
||||
def linked_object
|
||||
Answer.where(id: self.target_id).first
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue