Skip to content
Snippets Groups Projects
Commit f3cbbfe0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Notifiable concern

parent f0606451
No related branches found
No related tags found
No related merge requests found
# == Notifiable concern
#
# Contains notification functionality shared between UsersProject and UsersGroup
#
module Notifiable
extend ActiveSupport::Concern
included do
validates :notification_level, inclusion: { in: Notification.project_notification_levels }, presence: true
end
def notification
@notification ||= Notification.new(self)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment