Sha256: 2f8b0545f08e3023f7f7e50cf98237f0af338e32cd0b76b42b99a6d40f953f93
Contents?: true
Size: 947 Bytes
Versions: 15
Compression:
Stored size: 947 Bytes
Contents
module DeprecationNotification module StringParser def initialize(template, options = {}) options[:version] = '6.8' if options[:version] == '2.0' || options[:version] == '2.1' options[:version] = '6.9' if options[:version] == '2.2' || options[:version] == '2.3' options[:version] = '6.10' if options[:version] == '2.4' || options[:version] == '2.5' super(template, options) end end module Notification def create!(opts) if opts[:notification_blueprint] == NotificationBlueprint.find_by_name('feature_deprecation') && opts.dig(:actions, :links, 0, :href) == 'https://community.theforeman.org/t/dropping-smart-variables/16176' opts[:actions][:links][0][:href] = "#{ForemanThemeSatellite.documentation_root}/release_notes/index" end super(opts) end end end
Version data entries
15 entries across 15 versions & 1 rubygems