we don't need this

This commit is contained in:
nilsding 2014-12-14 14:49:14 +01:00
parent 6a914d4394
commit c56177cd10
2 changed files with 1 additions and 4 deletions

View file

@ -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={})

View file

@ -1,5 +1,2 @@
class Notifications::QuestionAnswered < Notification
def linked_object
Answer.where(id: self.target_id).first
end
end