Revision db8b1228
Added by Daniel Lobato Garcia over 7 years ago
app/models/notification_blueprint.rb | ||
---|---|---|
class NotificationBlueprint < ActiveRecord::Base
|
||
has_many :notifications
|
||
belongs_to :subject, :polymorphic => true
|
||
store :actions, :accessors => [:links], :coder => JSON
|
||
|
||
validates :message, :presence => true
|
||
validates :group, :presence => true
|
Also available in: Unified diff
Fixes #18426 - Add actions to notification entries
This adds support for the notifications to display actions. In case no
actions are provided, the dropdown kebab isn't shown. The actions
possible right now only include GET links.