mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
fixes notification model
This commit is contained in:
parent
808ec807c2
commit
330afe80dc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue