fixes notification model

This commit is contained in:
zmagod 2016-11-08 11:46:09 +01:00
parent 808ec807c2
commit 330afe80dc

View file

@ -3,7 +3,7 @@ class Notification < ActiveRecord::Base
has_many :users, through: :user_notifications
belongs_to :generator_user, class_name: 'User'
enum type_of: Constants::NOTIFICATIONS_TYPES
enum type_of: Extends::NOTIFICATIONS_TYPES
def already_seen(user)
UserNotification.where(notification: self, user: user)